mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
st/mesa: additional assertions in st_translate_mesa_program()
This commit is contained in:
parent
396f2cd94f
commit
7c6a897275
1 changed files with 5 additions and 0 deletions
|
|
@ -922,6 +922,9 @@ st_translate_mesa_program(
|
|||
unsigned i;
|
||||
enum pipe_error ret = PIPE_OK;
|
||||
|
||||
assert(numInputs <= Elements(t->inputs));
|
||||
assert(numOutputs <= Elements(t->outputs));
|
||||
|
||||
t = &translate;
|
||||
memset(t, 0, sizeof *t);
|
||||
|
||||
|
|
@ -1004,6 +1007,8 @@ st_translate_mesa_program(
|
|||
}
|
||||
}
|
||||
else {
|
||||
assert(procType == TGSI_PROCESSOR_VERTEX);
|
||||
|
||||
for (i = 0; i < numInputs; i++) {
|
||||
t->inputs[i] = ureg_DECL_vs_input(ureg, i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue