From: Faith Ekstrand Date: Tue, 10 Oct 2023 16:13:48 +0000 (-0500) Subject: nil/format: Advertise R10G10B10A2_UINT texture buffer support X-Git-Tag: upstream/23.3.3~1037 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ab969ff4ac41db11235a4b2fcab6211a144b6ef;p=platform%2Fupstream%2Fmesa.git nil/format: Advertise R10G10B10A2_UINT texture buffer support Part-of: --- diff --git a/src/nouveau/nil/nil_format.c b/src/nouveau/nil/nil_format.c index 83de3b6..dedb28c 100644 --- a/src/nouveau/nil/nil_format.c +++ b/src/nouveau/nil/nil_format.c @@ -30,6 +30,7 @@ struct nil_format_info { /* Abbreviated usage masks: * T: texturing + * B: texture buffer, implies T * R: render target * A: render target, alpha-blendable * C: render target (color), blendable only on nvc0 @@ -41,6 +42,7 @@ struct nil_format_info { #define U_B U_T | NIL_FORMAT_SUPPORTS_BUFFER_BIT #define U_I U_B | NIL_FORMAT_SUPPORTS_STORAGE_BIT #define U_TR NIL_FORMAT_SUPPORTS_RENDER_BIT | U_T +#define U_BR NIL_FORMAT_SUPPORTS_RENDER_BIT | U_B #define U_IR NIL_FORMAT_SUPPORTS_RENDER_BIT | U_I #define U_TA NIL_FORMAT_SUPPORTS_ALPHA_BLEND_BIT | U_TR #define U_IA NIL_FORMAT_SUPPORTS_ALPHA_BLEND_BIT | U_IR @@ -150,8 +152,8 @@ static const struct nil_format_info nil_format_infos[PIPE_FORMAT_COUNT] = F3(A, B10G10R10X2_UNORM, A2R10G10B10, B, G, R, x, UNORM, A2B10G10R10, T), C4(A, R10G10B10A2_SNORM, NONE, R, G, B, A, SNORM, A2B10G10R10, T), C4(A, B10G10R10A2_SNORM, NONE, B, G, R, A, SNORM, A2B10G10R10, T), - C4(A, R10G10B10A2_UINT, AU2BU10GU10RU10, R, G, B, A, UINT, A2B10G10R10, TR), - C4(A, B10G10R10A2_UINT, NONE, B, G, R, A, UINT, A2B10G10R10, T), + C4(A, R10G10B10A2_UINT, AU2BU10GU10RU10, R, G, B, A, UINT, A2B10G10R10, BR), + C4(A, B10G10R10A2_UINT, NONE, B, G, R, A, UINT, A2B10G10R10, B), F3(A, R11G11B10_FLOAT, BF10GF11RF11, R, G, B, x, FLOAT, BF10GF11RF11, IA),