nir: fill outputs_read field and add patch outputs read (v2)

This is to be used for TCS optimisations on radv.

v2: don't set written on reads (nha)

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Dave Airlie
2017-11-14 15:10:44 +10:00
parent fd301472bd
commit 33dca36f4f
2 changed files with 30 additions and 12 deletions

View File

@@ -66,6 +66,8 @@ typedef struct shader_info {
uint32_t patch_inputs_read;
/* Which patch outputs are actually written */
uint32_t patch_outputs_written;
/* Which patch outputs are read */
uint32_t patch_outputs_read;
/* Whether or not this shader ever uses textureGather() */
bool uses_texture_gather;