mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 08:40:11 +01:00
gallium/st: place value check before value is use
7.9 & 7.10 candidate Signed-off-by: Jerome Glisse <jglisse@redhat.com>
This commit is contained in:
parent
179ff0551c
commit
8e17adfdbd
1 changed files with 1 additions and 1 deletions
|
|
@ -224,9 +224,9 @@ src_register( struct st_translate *t,
|
|||
|
||||
case PROGRAM_TEMPORARY:
|
||||
assert(index >= 0);
|
||||
assert(index < Elements(t->temps));
|
||||
if (ureg_dst_is_undef(t->temps[index]))
|
||||
t->temps[index] = ureg_DECL_temporary( t->ureg );
|
||||
assert(index < Elements(t->temps));
|
||||
return ureg_src(t->temps[index]);
|
||||
|
||||
case PROGRAM_NAMED_PARAM:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue