[Mesa-dev] [PATCH 1/2] i965/gen4: Pull texture formats from the texture object not the miptree

Kenneth Graunke kenneth at whitecape.org
Wed Jun 22 19:14:18 UTC 2016


On Wednesday, June 22, 2016 12:07:05 PM PDT Jason Ekstrand wrote:
> This makes texture views sort-of work.  It doesn't add full texture view
> support for gen4-5 but it is enough to fix the GL_ARB_copy_image formats
> piglit test on Iron Lake.
> 
> Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83036
> Cc: "11.1 11.2 12.0" <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> index 133a944..b07bf19 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -335,7 +335,7 @@ brw_update_texture_surface(struct gl_context *ctx,
>     surf = brw_state_batch(brw, AUB_TRACE_SURFACE_STATE,
>  			  6 * 4, 32, surf_offset);
>  
> -   uint32_t tex_format = translate_tex_format(brw, mt->format,
> +   uint32_t tex_format = translate_tex_format(brw, intelObj->_Format,
>                                                sampler->sRGBDecode);
>  
>     if (tObj->Target == GL_TEXTURE_EXTERNAL_OES) {
> 

Both of these are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160622/c1ecaf38/attachment-0001.sig>


More information about the mesa-dev mailing list