zink: do advertize integer support in shaders
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 30 Oct 2019 10:25:00 +0000 (11:25 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 6 Nov 2019 12:43:14 +0000 (13:43 +0100)
This is supported, so let's correct this.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/zink/zink_screen.c

index 7addb9d96601161ecff47c3e7fc52c2e969eea25..049362b6519ceca100ccb3b4d7481b8daee0c404 100644 (file)
@@ -395,12 +395,14 @@ zink_get_shader_param(struct pipe_screen *pscreen,
    case PIPE_SHADER_CAP_MAX_TEMPS:
       return INT_MAX;
 
+   case PIPE_SHADER_CAP_INTEGERS:
+      return 1;
+
    case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
    case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
    case PIPE_SHADER_CAP_SUBROUTINES:
-   case PIPE_SHADER_CAP_INTEGERS:
    case PIPE_SHADER_CAP_INT64_ATOMICS:
    case PIPE_SHADER_CAP_FP16:
       return 0; /* not implemented */