mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
r600: Assert that array index is not negative.
This commit is contained in:
parent
b75d407369
commit
e16f0c14f3
1 changed files with 1 additions and 0 deletions
|
|
@ -1250,6 +1250,7 @@ GLboolean assemble_src(r700_AssemblerBase *pAsm,
|
|||
|
||||
if(pAsm->aArgSubst[1+src] >= 0)
|
||||
{
|
||||
assert(fld >= 0);
|
||||
setaddrmode_PVSSRC(&(pAsm->S[fld].src), ADDR_ABSOLUTE);
|
||||
pAsm->S[fld].src.rtype = SRC_REG_TEMPORARY;
|
||||
pAsm->S[fld].src.reg = pAsm->aArgSubst[1+src];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue