mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
st/mesa: additional assertions in dst_register()
This commit is contained in:
parent
a1cc4c1924
commit
adbbaae7b9
1 changed files with 10 additions and 0 deletions
|
|
@ -156,6 +156,16 @@ dst_register( struct st_translate *t,
|
|||
case PROGRAM_OUTPUT:
|
||||
if (index == VERT_RESULT_PSIZ)
|
||||
t->prevInstWrotePsiz = GL_TRUE;
|
||||
|
||||
if (t->procType == TGSI_PROCESSOR_VERTEX)
|
||||
assert(index < VERT_RESULT_MAX);
|
||||
else if (t->procType == TGSI_PROCESSOR_FRAGMENT)
|
||||
assert(index < FRAG_RESULT_MAX);
|
||||
else
|
||||
assert(0 && "geom shaders not handled in dst_register() yet");
|
||||
|
||||
assert(t->outputMapping[index] < Elements(t->outputs));
|
||||
|
||||
return t->outputs[t->outputMapping[index]];
|
||||
|
||||
case PROGRAM_ADDRESS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue