summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2014-09-26 17:56:08 -0400
committerEmil Velikov <[email protected]>2014-10-29 17:43:59 +0000
commit1a7fb8f04ad63fab2235d57c3b0811b9a8161148 (patch)
treece5cfb1c9d77c8400c5d1f9893faaadd8fc098b4
parentfb10a43b845e58dc25f693be79cd6f31ceb48c84 (diff)
freedreno: turn missing caps into compile warnings
Get rid of the 'default' case (as suggestied by imirkin) so compiler warns us about missing caps. Also add some caps that were missing until now. Signed-off-by: Rob Clark <[email protected]> (cherry picked from commit f7259949da0afb085629095524b304c9371863cb)
-rw-r--r--src/gallium/drivers/freedreno/freedreno_screen.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 48ab78f3aa0..7923f60f8aa 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -184,6 +184,10 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_TEXTURE_BARRIER:
case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
case PIPE_CAP_SM3:
+ case PIPE_CAP_CUBE_MAP_ARRAY:
+ case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
+ case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT:
+ case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
return 0;
case PIPE_CAP_PRIMITIVE_RESTART:
@@ -284,11 +288,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
return 10;
case PIPE_CAP_UMA:
return 1;
-
- default:
- DBG("unknown param %d", param);
- return 0;
}
+ debug_printf("unknown param %d\n", param);
+ return 0;
}
static float
@@ -309,10 +311,9 @@ fd_screen_get_paramf(struct pipe_screen *pscreen, enum pipe_capf param)
case PIPE_CAPF_GUARD_BAND_RIGHT:
case PIPE_CAPF_GUARD_BAND_BOTTOM:
return 0.0f;
- default:
- DBG("unknown paramf %d", param);
- return 0;
}
+ debug_printf("unknown paramf %d\n", param);
+ return 0;
}
static int
@@ -362,6 +363,7 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
return 1;
case PIPE_SHADER_CAP_SUBROUTINES:
+ case PIPE_SHADER_CAP_DOUBLES:
return 0;
case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
return 1;
@@ -375,10 +377,8 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
return 16;
case PIPE_SHADER_CAP_PREFERRED_IR:
return PIPE_SHADER_IR_TGSI;
- default:
- DBG("unknown shader param %d", param);
- return 0;
}
+ debug_printf("unknown shader param %d\n", param);
return 0;
}