[Mesa-dev] [PATCH 1/2] mesa/texstore: Use Driver.CompressedTexSubImage in the default CompressedTexImage
Nicolai Hähnle
nhaehnle at gmail.com
Tue Apr 12 23:23:26 UTC 2016
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
On 12.04.2016 17:30, Nanley Chery wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> Enable drivers to use their own implementation of this method instead of
> the mesa default. Since the drivers that currently overwrite
> dd_function_table::CompressedTexSubImage also overwrite
> ::CompressedTexImage, there should be no behavioral change.
>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
> src/mesa/main/texstore.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
> index c33b109..48f6086 100644
> --- a/src/mesa/main/texstore.c
> +++ b/src/mesa/main/texstore.c
> @@ -1243,11 +1243,11 @@ _mesa_store_compressed_teximage(struct gl_context *ctx, GLuint dims,
> return;
> }
>
> - _mesa_store_compressed_texsubimage(ctx, dims, texImage,
> - 0, 0, 0,
> - texImage->Width, texImage->Height, texImage->Depth,
> - texImage->TexFormat,
> - imageSize, data);
> + ctx->Driver.CompressedTexSubImage(ctx, dims, texImage,
> + 0, 0, 0,
> + texImage->Width, texImage->Height, texImage->Depth,
> + texImage->TexFormat,
> + imageSize, data);
> }
>
>
>
More information about the mesa-dev
mailing list