mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radeonsi: Fix array indices for detecting integer vertex formats
(cherry picked from commit f34ad85765)
This commit is contained in:
parent
baa9070346
commit
14372a70ec
1 changed files with 2 additions and 2 deletions
|
|
@ -2494,7 +2494,7 @@ static void *si_create_vertex_elements(struct pipe_context *ctx,
|
|||
case UTIL_FORMAT_TYPE_SIGNED:
|
||||
if (desc->channel[first_non_void].normalized)
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_SNORM;
|
||||
else if (desc->channel[i].pure_integer)
|
||||
else if (desc->channel[first_non_void].pure_integer)
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_SINT;
|
||||
else
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_SSCALED;
|
||||
|
|
@ -2502,7 +2502,7 @@ static void *si_create_vertex_elements(struct pipe_context *ctx,
|
|||
case UTIL_FORMAT_TYPE_UNSIGNED:
|
||||
if (desc->channel[first_non_void].normalized)
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_UNORM;
|
||||
else if (desc->channel[i].pure_integer)
|
||||
else if (desc->channel[first_non_void].pure_integer)
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_UINT;
|
||||
else
|
||||
num_format = V_008F0C_BUF_NUM_FORMAT_USCALED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue