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 <anuj.phogat@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
int xoffset, int yoffset, int zoffset,
int width, int height, int depth,
GLenum format, GLenum type, const void *pixels,
int xoffset, int yoffset, int zoffset,
int width, int height, int depth,
GLenum format, GLenum type, const void *pixels,
- bool allocate_storage, bool create_pbo,
const struct gl_pixelstore_attrib *packing);
extern bool
const struct gl_pixelstore_attrib *packing);
extern bool
int xoffset, int yoffset, int zoffset,
int width, int height, int depth,
GLenum format, GLenum type, const void *pixels,
int xoffset, int yoffset, int zoffset,
int width, int height, int depth,
GLenum format, GLenum type, const void *pixels,
- bool allocate_storage, bool create_pbo,
const struct gl_pixelstore_attrib *packing)
{
struct gl_buffer_object *pbo = NULL;
const struct gl_pixelstore_attrib *packing)
{
struct gl_buffer_object *pbo = NULL;
- if (allocate_storage)
- ctx->Driver.AllocTextureImageBuffer(ctx, tex_image);
-
readFb = ctx->Driver.NewFramebuffer(ctx, 0xDEADBEEF);
if (readFb == NULL)
goto fail;
readFb = ctx->Driver.NewFramebuffer(ctx, 0xDEADBEEF);
if (readFb == NULL)
goto fail;
texImage->Width, texImage->Height,
texImage->Depth,
format, type, pixels,
texImage->Width, texImage->Height,
texImage->Depth,
format, type, pixels,
- false /*allocate_storage*/,
tex_busy, unpack);
if (ok)
return;
tex_busy, unpack);
if (ok)
return;
ok = _mesa_meta_pbo_TexSubImage(ctx, dims, texImage,
xoffset, yoffset, zoffset,
width, height, depth, format, type,
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);