r300: add PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTER* switch cases
authorBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:38:39 +0000 (09:38 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 23:09:59 +0000 (16:09 -0700)
To silence compiler warnings.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r300/r300_screen.c

index ac5208a0c4879f22d145c80575b21272de9fa3aa..99d63021da5f9afea45109a983480837d7d7ec2f 100644 (file)
@@ -434,6 +434,8 @@ static int r300_get_shader_param(struct pipe_screen *pscreen,
         case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
         case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
         case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
+        case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTERS:
+        case PIPE_SHADER_CAP_MAX_HW_ATOMIC_COUNTER_BUFFERS:
             return 0;
         case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
             return 32;