summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2016-03-01 16:46:22 -0800
committerAnuj Phogat <[email protected]>2016-03-02 15:06:46 -0800
commitde61849994dec48496a81540c384159da0e8371e (patch)
treeca4c468083215a860cd7443197d3d26a5382261f /src/mesa/drivers/dri
parent6d4ebbe9e5798edee199671c0a98cbf2c5b042e2 (diff)
meta: Remove the 'allocate_storage' parameter in _mesa_meta_pbo_GetTexSubImage()
Texture is already allocated before calling this meta function. So, the value of 'allocate_storage' passed to the function is always false. Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_image.c1
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_subimage.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index e21c3ac543f..85259022c64 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_image.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
@@ -111,7 +111,6 @@ intelTexImage(struct gl_context * ctx,
texImage->Width, texImage->Height,
texImage->Depth,
format, type, pixels,
- false /*allocate_storage*/,
tex_busy, unpack);
if (ok)
return;
diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index 573f701acdd..4849a4151e2 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@ -214,7 +214,7 @@ intelTexSubImage(struct gl_context * ctx,
ok = _mesa_meta_pbo_TexSubImage(ctx, dims, texImage,
xoffset, yoffset, zoffset,
width, height, depth, format, type,
- pixels, false, tex_busy, packing);
+ pixels, tex_busy, packing);
if (ok)
return;