r600: Assert that array index is not negative.

This commit is contained in:
Vinson Lee 2010-02-24 00:24:51 -08:00
parent b75d407369
commit e16f0c14f3
1 changed files with 1 additions and 0 deletions

View File

@ -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];