mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
ac: Silence a compiler warning about results[0].
We know that num_components will be > 0, but it doesn't. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
34c04c734f
commit
ba85525fce
1 changed files with 1 additions and 0 deletions
|
|
@ -2541,6 +2541,7 @@ static LLVMValueRef visit_load_buffer(struct ac_nir_context *ctx,
|
|||
|
||||
}
|
||||
|
||||
assume(results[0]);
|
||||
LLVMValueRef ret = results[0];
|
||||
if (num_components > 4 || num_components == 3) {
|
||||
LLVMValueRef masks[] = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue