iris: Face should be a system value.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 13 Feb 2019 22:28:20 +0000 (00:28 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Mar 2019 21:02:40 +0000 (14:02 -0700)
This patch adds PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL which
despite its name is not a TGSI-specific capability, just lets
the state tracker know that it should generate a system value
for FACE.

This is needed if we want to run tgsi_to_nir on iris.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_screen.c

index f18f986547e7254cdc8ecfcff239550fdbeb8f20..0d908a00e1f1915dfb4a6a2126453adf374d5d78 100644 (file)
@@ -172,6 +172,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_LOAD_CONSTBUF:
    case PIPE_CAP_NIR_COMPACT_ARRAYS:
    case PIPE_CAP_DRAW_PARAMETERS:
+   case PIPE_CAP_TGSI_FS_FACE_IS_INTEGER_SYSVAL:
       return true;
    case PIPE_CAP_TGSI_FS_FBFETCH:
    case PIPE_CAP_POST_DEPTH_COVERAGE: