diff options
author | Vinson Lee <[email protected]> | 2010-02-24 00:24:51 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-24 00:24:51 -0800 |
commit | e16f0c14f353cc04ad6cbcf99e3b95ccb1d2c06b (patch) | |
tree | f5124f91e2ec228cbdf6357806a1aeb2f5dda978 /src/mesa/drivers | |
parent | b75d40736997911e00cab339a7f15ec9bc86e535 (diff) |
r600: Assert that array index is not negative.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_assembler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_assembler.c b/src/mesa/drivers/dri/r600/r700_assembler.c index d0059fad2ea..8344dd9a518 100644 --- a/src/mesa/drivers/dri/r600/r700_assembler.c +++ b/src/mesa/drivers/dri/r600/r700_assembler.c @@ -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]; |