diff options
author | José Fonseca <[email protected]> | 2008-09-10 10:32:52 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-09-10 10:32:52 +0900 |
commit | dc1834a873726b9920c2cae6ffad86e09d4637ee (patch) | |
tree | b437caf04295859d4d3afd0ab8ba431b540cc852 /src | |
parent | d671cf460f99693ded1eccc6b32816d430098725 (diff) |
tgsi: Verify constants are set before attempting to read them.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index fb573fe1f0c..df002939c6b 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -957,6 +957,7 @@ fetch_src_file_channel( case TGSI_EXTSWIZZLE_W: switch( file ) { case TGSI_FILE_CONSTANT: + assert(mach->Consts); chan->f[0] = mach->Consts[index->i[0]][swizzle]; chan->f[1] = mach->Consts[index->i[1]][swizzle]; chan->f[2] = mach->Consts[index->i[2]][swizzle]; |