mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
ac: fix PIPE_FORMAT_R11G11B10_FLOAT DST_SEL_W
Previously, the W component would be incorrect for attributes using this format when loaded in RADV's vertex shader prologs. Fixes dEQP-VK.pipeline.fast_linked_library.vertex_input.*b10g11r11*missing_components* Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Fixes:6a2ada93b4("ac: add ac_vtx_format_info") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23645> (cherry picked from commit4291cc5255)
This commit is contained in:
parent
be57dc25ac
commit
5b14568dad
2 changed files with 2 additions and 2 deletions
|
|
@ -337,7 +337,7 @@
|
|||
"description": "ac: fix PIPE_FORMAT_R11G11B10_FLOAT DST_SEL_W",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "6a2ada93b49b2317e25d433da1548843a14b25d7"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ const struct ac_data_format_info *ac_get_data_format_info(unsigned dfmt)
|
|||
[(int)PIPE_FORMAT_R10G10B10A2_UINT] = {DST_SEL(X,Y,Z,W), 4, 4, 0, FMTP(2_10_10_10, UINT)}, \
|
||||
[(int)PIPE_FORMAT_R10G10B10A2_SINT] = {DST_SEL(X,Y,Z,W), 4, 4, 0, FMTP(2_10_10_10, SINT), \
|
||||
AA(AC_ALPHA_ADJUST_SINT)}, \
|
||||
[(int)PIPE_FORMAT_R11G11B10_FLOAT] = {DST_SEL(X,Y,Z,W), 4, 3, 0, FMTP(10_11_11, FLOAT)}, \
|
||||
[(int)PIPE_FORMAT_R11G11B10_FLOAT] = {DST_SEL(X,Y,Z,1), 4, 3, 0, FMTP(10_11_11, FLOAT)}, \
|
||||
|
||||
#define HW_FMT(dfmt, nfmt) (V_008F0C_BUF_DATA_FORMAT_##dfmt | (V_008F0C_BUF_NUM_FORMAT_##nfmt << 4))
|
||||
#define HW_FMT_INVALID (V_008F0C_BUF_DATA_FORMAT_INVALID | (V_008F0C_BUF_NUM_FORMAT_UNORM << 4))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue