mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
zink: fix decomposed_attrs val error when zink_vs_key->size is 4
decomposed_attrs and decomposed_attrs_without_w should get from vs->u32
when zink_vs_key->size is 4.
Fixes: 19fbdb9064 ("zink: move shader keys to be persistent on pipeline state")
Signed-off-by: Lu Yao <yaolu@kylinos.cn>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33079>
This commit is contained in:
parent
0b6446efe2
commit
7679102b45
1 changed files with 2 additions and 2 deletions
|
|
@ -204,8 +204,8 @@ zink_bind_vertex_elements_state(struct pipe_context *pctx,
|
|||
decomposed_attrs_without_w = vs->u16.decomposed_attrs_without_w;
|
||||
break;
|
||||
case 4:
|
||||
decomposed_attrs = vs->u16.decomposed_attrs;
|
||||
decomposed_attrs_without_w = vs->u16.decomposed_attrs_without_w;
|
||||
decomposed_attrs = vs->u32.decomposed_attrs;
|
||||
decomposed_attrs_without_w = vs->u32.decomposed_attrs_without_w;
|
||||
break;
|
||||
}
|
||||
if (ctx->element_state->decomposed_attrs != decomposed_attrs ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue