P4 to Git Change 1326088 by gandryey@gera-brahma on 2016/10/13 12:23:26
SWDEV-86035 - Support for PAL Linux build Affected files ... ... //depot/stg/opencl/drivers/opencl/appprofiles/brahma/apl.cpp#3 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palcounters.cpp#6 edit
Tá an tiomantas seo le fáil i:
@@ -69,7 +69,7 @@ uint64_t PalCounterReference::result(int index)
|
||||
}
|
||||
|
||||
if (layout_ != nullptr) {
|
||||
assert(index <= layout_->sampleCount && "index not in range");
|
||||
assert(index <= static_cast<int>(layout_->sampleCount) && "index not in range");
|
||||
const Pal::GlobalSampleLayout& sample = layout_->samples[index];
|
||||
if (sample.dataType == Pal::PerfCounterDataType::Uint32) {
|
||||
uint32_t beginVal = *reinterpret_cast<uint32_t*>(reinterpret_cast<char*>(cpuAddr_) + sample.beginValueOffset);
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir