[Mesa-dev] [PATCH] i965: Render R16G16B16X16 as R16G16B16A16

Kenneth Graunke kenneth at whitecape.org
Wed Apr 15 16:38:12 PDT 2015


On Wednesday, April 15, 2015 11:38:51 AM Anuj Phogat wrote:
> This enables using _mesa_meta_pbo_TexSubImage() to upload data
> to R16G16B16X16 texture. Earlier it fell back to slower paths.
> 
> Jenkins run shows no piglit regressions.
> 
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_surface_formats.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_surface_formats.c b/src/mesa/drivers/dri/i965/brw_surface_formats.c
> index f04bac5..7bec8fa 100644
> --- a/src/mesa/drivers/dri/i965/brw_surface_formats.c
> +++ b/src/mesa/drivers/dri/i965/brw_surface_formats.c
> @@ -582,6 +582,12 @@ brw_init_surface_formats(struct brw_context *brw)
>        case BRW_SURFACEFORMAT_L16_FLOAT:
>  	 render = BRW_SURFACEFORMAT_R16_FLOAT;
>  	 break;
> +      case BRW_SURFACEFORMAT_R16G16B16X16_UNORM:
> +         render = BRW_SURFACEFORMAT_R16G16B16A16_UNORM;
> +         break;
> +      case BRW_SURFACEFORMAT_R16G16B16X16_FLOAT:
> +         render = BRW_SURFACEFORMAT_R16G16B16A16_FLOAT;
> +         break;
>        case BRW_SURFACEFORMAT_B8G8R8X8_UNORM:
>  	 /* XRGB is handled as ARGB because the chips in this family
>  	  * cannot render to XRGB targets.  This means that we have to
> 

LGTM, thanks!

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: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150415/427f2376/attachment.sig>


More information about the mesa-dev mailing list