aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_screen.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-08-10 18:02:02 -0700
committerEric Anholt <[email protected]>2018-09-04 08:08:10 -0700
commitc311e000007cdc84562b0d8fd72dd1f466186b95 (patch)
tree97bb19efcbd8f18929274802e19b03a6762fd2a5 /src/gallium/auxiliary/util/u_screen.c
parentad782a7020216b691e860115ec15cc8c95c13630 (diff)
vc4: Drop a bunch of duplicated gallium PIPE_CAP default code.
Now that we have the util function for the default values, we can get rid of the boilerplate. v2: drop GLSL level in favor of defaults. v3: Rebase on new gallium caps
Diffstat (limited to 'src/gallium/auxiliary/util/u_screen.c')
-rw-r--r--src/gallium/auxiliary/util/u_screen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c
index 8c0a1297f2a..d19d604e0c5 100644
--- a/src/gallium/auxiliary/util/u_screen.c
+++ b/src/gallium/auxiliary/util/u_screen.c
@@ -63,11 +63,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
case PIPE_CAP_PRIMITIVE_RESTART:
case PIPE_CAP_INDEP_BLEND_ENABLE:
case PIPE_CAP_INDEP_BLEND_FUNC:
- return 0;
-
- case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS:
- unreachable("driver must implement these.");
-
+ case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: /* Enables GL_EXT_texture_array */
case PIPE_CAP_TGSI_FS_COORD_ORIGIN_UPPER_LEFT:
case PIPE_CAP_TGSI_FS_COORD_ORIGIN_LOWER_LEFT:
case PIPE_CAP_TGSI_FS_COORD_PIXEL_CENTER_HALF_INTEGER: