mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
glsl: Assert that inputs have a location assigned
This catches a problem previously undetected until deep in the backend. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
This commit is contained in:
parent
cf9220b11f
commit
2ef4b5bc93
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ mark(struct gl_program *prog, ir_variable *var, int offset, int len,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
|
assert(var->data.location != -1);
|
||||||
|
|
||||||
int idx = var->data.location + var->data.index + offset + i;
|
int idx = var->data.location + var->data.index + offset + i;
|
||||||
bool is_patch_generic = var->data.patch &&
|
bool is_patch_generic = var->data.patch &&
|
||||||
idx != VARYING_SLOT_TESS_LEVEL_INNER &&
|
idx != VARYING_SLOT_TESS_LEVEL_INNER &&
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue