From 9508f6b67fa4296884fc846fb23aefe71a12507f Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 31 Jul 2015 05:04:50 -0400 Subject: [PATCH] P4 to Git Change 1175956 by nhaustov@nhaustov_hsa on 2015/07/31 04:55:15 ECR #333756 - Bug 10951: HSA Loader: Handle HSA_EXT_SAMPLER_ADDRESSING_MODE_UNDEFINED addressing mode. This fixes Compubench failure. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#198 edit --- rocclr/runtime/device/gpu/gpuprogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/runtime/device/gpu/gpuprogram.cpp b/rocclr/runtime/device/gpu/gpuprogram.cpp index 0dbe5d3494..84aff7f8cd 100644 --- a/rocclr/runtime/device/gpu/gpuprogram.cpp +++ b/rocclr/runtime/device/gpu/gpuprogram.cpp @@ -2383,7 +2383,7 @@ hsa_status_t ORCAHSALoaderContext::SamplerCreate( case HSA_EXT_SAMPLER_ADDRESSING_MODE_CLAMP_TO_BORDER: state |= amd::Sampler::StateAddressClamp; break; case HSA_EXT_SAMPLER_ADDRESSING_MODE_REPEAT: state |= amd::Sampler::StateAddressRepeat; break; case HSA_EXT_SAMPLER_ADDRESSING_MODE_MIRRORED_REPEAT: state |= amd::Sampler::StateAddressMirroredRepeat; break; - case HSA_EXT_SAMPLER_ADDRESSING_MODE_UNDEFINED: + case HSA_EXT_SAMPLER_ADDRESSING_MODE_UNDEFINED: state |= amd::Sampler::StateAddressNone; break; default: assert(false); return HSA_STATUS_ERROR_INVALID_ARGUMENT;