mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965: Render R16G16B16X16 as R16G16B16A16
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@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
c6b0922c31
commit
79010c9a53
1 changed files with 6 additions and 0 deletions
|
|
@ -590,6 +590,12 @@ brw_init_surface_formats(struct brw_context *brw)
|
|||
case BRW_SURFACEFORMAT_L16_UNORM:
|
||||
render = BRW_SURFACEFORMAT_R16_UNORM;
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue