diff options
author | Timothy Pearson <[email protected]> | 2018-07-16 14:20:42 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-07-18 13:31:29 -0400 |
commit | e1621fda84d92f154b19c5bf9562ee6963414399 (patch) | |
tree | 0fa8717e367e463d8ca3abcb0aaf34b3a1d92d45 | |
parent | aaa6fac8f65e6a28ba73eef6a0e6da4bef4fc992 (diff) |
radeonsi: Use signed char for color_interp_vgpr_index
color_interp_vgpr_index was declared as a generic char value.
Because signed values are used in this variable, the result
was not safe across architectures and crashed on ppc64[el]
and arm.
Declare color_interp_vgpr_index as a signed type.
Signed-off-by: Timothy Pearson <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index ffe13b761d9..a2fb48ab023 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -502,7 +502,7 @@ union si_shader_part_key { unsigned ancillary_vgpr_index:5; unsigned wqm:1; char color_attr_index[2]; - char color_interp_vgpr_index[2]; /* -1 == constant */ + signed char color_interp_vgpr_index[2]; /* -1 == constant */ } ps_prolog; struct { struct si_ps_epilog_bits states; |