diff options
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_subimage.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_subimage.c b/src/mesa/drivers/dri/intel/intel_tex_subimage.c index e58d906b4f2..cbbf7e1d48d 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_subimage.c +++ b/src/mesa/drivers/dri/intel/intel_tex_subimage.c @@ -57,6 +57,7 @@ intel_blit_texsubimage(struct gl_context * ctx, unsigned int blit_x = 0, blit_y = 0; unsigned long pitch; uint32_t tiling_mode = I915_TILING_NONE; + GLubyte *dstMap; /* Try to do a blit upload of the subimage if the texture is * currently busy. @@ -108,8 +109,7 @@ intel_blit_texsubimage(struct gl_context * ctx, return false; } - texImage->Data = temp_bo->virtual; - texImage->ImageOffsets[0] = 0; + dstMap = temp_bo->virtual; dstRowStride = pitch; intel_miptree_get_image_offset(intelImage->mt, level, @@ -122,10 +122,9 @@ intel_blit_texsubimage(struct gl_context * ctx, if (!_mesa_texstore(ctx, 2, texImage->_BaseFormat, texImage->TexFormat, - texImage->Data, xoffset, yoffset, 0, dstRowStride, - texImage->ImageOffsets, + &dstMap, width, height, 1, format, type, pixels, packing)) { _mesa_error(ctx, GL_OUT_OF_MEMORY, "intelTexSubImage"); @@ -136,7 +135,6 @@ intel_blit_texsubimage(struct gl_context * ctx, intelImage->mt->cpp; drm_intel_gem_bo_unmap_gtt(temp_bo); - texImage->Data = NULL; ret = intelEmitCopyBlit(intel, intelImage->mt->cpp, |