[Mesa-dev] [RFC 08/24] nvc0: enable RGB10_A2UI format on GK104

Ilia Mirkin imirkin at alum.mit.edu
Wed Apr 13 20:24:14 UTC 2016


Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

On Tue, Apr 12, 2016 at 7:56 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> No clue why this was not enabled by default before, maybe because
> the SULDP conversion was wrong. Anyway, this helps in fixing all
> rgb10_a2ui piglit tests.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/drivers/nouveau/nvc0/nvc0_tex.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> index 45b663b..49a78b5 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
> @@ -980,7 +980,7 @@ static const uint8_t nve4_su_format_map[PIPE_FORMAT_COUNT] =
>     [PIPE_FORMAT_R8G8B8A8_UINT] = GK104_IMAGE_FORMAT_RGBA8_UINT,
>     [PIPE_FORMAT_R11G11B10_FLOAT] = GK104_IMAGE_FORMAT_R11G11B10_FLOAT,
>     [PIPE_FORMAT_R10G10B10A2_UNORM] = GK104_IMAGE_FORMAT_RGB10_A2_UNORM,
> -/* [PIPE_FORMAT_R10G10B10A2_UINT] = GK104_IMAGE_FORMAT_RGB10_A2_UINT, */
> +   [PIPE_FORMAT_R10G10B10A2_UINT] = GK104_IMAGE_FORMAT_RGB10_A2_UINT,
>     [PIPE_FORMAT_R32G32_FLOAT] = GK104_IMAGE_FORMAT_RG32_FLOAT,
>     [PIPE_FORMAT_R32G32_SINT] = GK104_IMAGE_FORMAT_RG32_SINT,
>     [PIPE_FORMAT_R32G32_UINT] = GK104_IMAGE_FORMAT_RG32_UINT,
> @@ -1027,7 +1027,7 @@ static const uint16_t nve4_su_format_aux_map[PIPE_FORMAT_COUNT] =
>     [PIPE_FORMAT_R32G32_UINT] = 0x3433,
>
>     [PIPE_FORMAT_R10G10B10A2_UNORM] = 0x2a24,
> -/* [PIPE_FORMAT_R10G10B10A2_UINT] = 0x2a24, */
> +   [PIPE_FORMAT_R10G10B10A2_UINT] = 0x2a24,
>     [PIPE_FORMAT_R8G8B8A8_UNORM] = 0x2a24,
>     [PIPE_FORMAT_R8G8B8A8_SNORM] = 0x2a24,
>     [PIPE_FORMAT_R8G8B8A8_SINT] = 0x2a24,
> @@ -1078,7 +1078,7 @@ static const uint16_t nve4_suldp_lib_offset[PIPE_FORMAT_COUNT] =
>     [PIPE_FORMAT_R32G32_SINT]        = 0x468,
>     [PIPE_FORMAT_R32G32_UINT]        = 0x468,
>     [PIPE_FORMAT_R10G10B10A2_UNORM]  = 0x4a8,
> -/* [PIPE_FORMAT_R10G10B10A2_UINT]   = 0x530, */
> +   [PIPE_FORMAT_R10G10B10A2_UINT]   = 0x530,
>     [PIPE_FORMAT_R8G8B8A8_UNORM]     = 0x588,
>     [PIPE_FORMAT_R8G8B8A8_SNORM]     = 0x5f8,
>     [PIPE_FORMAT_R8G8B8A8_SINT]      = 0x670,
> --
> 2.8.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list