glsl: add check_image_resources() for the nir linker
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 3 Jan 2020 04:09:20 +0000 (15:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 6 Jan 2020 22:53:51 +0000 (09:53 +1100)
commitfeffd1fa65d36e34499f29b39f8b18655c2b979f
treeeafeb9a142ada909c430d4186179dadf74479883
parenta853de0c95d5dce7aee983efd243377ffe3a6e91
glsl: add check_image_resources() for the nir linker

This is adapted from the GLSL IR code but doesn't need to
iterate over the IR. I believe this also fixes a potential bug in
the GLSL IR code which potentially counts the same output twice.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/gl_nir_linker.c