Mesa (master): iris: Face should be a system value.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 11 21:02:57 UTC 2019


Module: Mesa
Branch: master
Commit: fd5075e0594ba13c24eb195e098a814c8e76249b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd5075e0594ba13c24eb195e098a814c8e76249b

Author: Timur Kristóf <timur.kristof at gmail.com>
Date:   Thu Feb 14 00:28:20 2019 +0200

iris: Face should be a system value.

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 at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/gallium/drivers/iris/iris_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c
index f18f986547e..0d908a00e1f 100644
--- a/src/gallium/drivers/iris/iris_screen.c
+++ b/src/gallium/drivers/iris/iris_screen.c
@@ -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:




More information about the mesa-commit mailing list