Set offset value to 0

[ROCm/clr commit: c3d786d810]
이 커밋은 다음에 포함됨:
Rahul Garg가 2018-03-11 00:12:22 +05:30를 커밋했습니다
1 부모 ecbb701440
커밋 83fac92815
1 파일이 변경됨
+2
+2
파일 보기
@@ -391,6 +391,7 @@ hipError_t ihipBindTextureImpl(int dim,
enum hipTextureFilterMode filterMode = tex->filterMode;
int normalizedCoords = tex->normalized;
hipTextureObject_t& textureObject = tex->textureObject;
*offset = 0;
auto ctx = ihipGetTlsDefaultCtx();
if (ctx) {
hc::accelerator acc = ctx->getDevice()->_acc;
@@ -467,6 +468,7 @@ hipError_t ihipBindTexture2DImpl(int dim,
enum hipTextureFilterMode filterMode = tex->filterMode;
int normalizedCoords = tex->normalized;
hipTextureObject_t& textureObject = tex->textureObject;
*offset = 0;
auto ctx = ihipGetTlsDefaultCtx();
if (ctx) {
hc::accelerator acc = ctx->getDevice()->_acc;