radeonsi/compute: Default to the same PIPE_SHADER_CAP values as other shader types v2
authorTom Stellard <thomas.stellard@amd.com>
Sat, 21 Mar 2015 00:27:16 +0000 (00:27 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 31 Mar 2015 15:40:51 +0000 (15:40 +0000)
v2:
  - Fix typo

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

index 0eada72ad5ae4cd89ea0424a25c4ff056ff32592..ae96b6bab1d764ef3a3f3148f826fd973f559173 100644 (file)
@@ -398,8 +398,12 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu
                        return max_const_buffer_size;
                }
                default:
-                       return 0;
+                       /* If compute shaders don't require a special value
+                        * for this cap, we can return the same value we
+                        * do for other shader types. */
+                       break;
                }
+               break;
        default:
                /* TODO: support tessellation */
                return 0;