mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 01:50:12 +01:00
radv: remove unsigned comparison against 0
The value is always >= 0 here. Found by coverity Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
6e1d294804
commit
600d8ecb57
1 changed files with 1 additions and 1 deletions
|
|
@ -2282,7 +2282,7 @@ si_llvm_init_export_args(struct radv_shader_context *ctx,
|
|||
return;
|
||||
|
||||
bool is_16bit = ac_get_type_size(LLVMTypeOf(values[0])) == 2;
|
||||
if (ctx->stage == MESA_SHADER_FRAGMENT && target >= V_008DFC_SQ_EXP_MRT) {
|
||||
if (ctx->stage == MESA_SHADER_FRAGMENT) {
|
||||
unsigned index = target - V_008DFC_SQ_EXP_MRT;
|
||||
unsigned col_format = (ctx->options->key.fs.col_format >> (4 * index)) & 0xf;
|
||||
bool is_int8 = (ctx->options->key.fs.is_int8 >> index) & 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue