summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlok Hota <alok.hota@intel.com>2019-01-30 10:43:40 -0600
committerAlok Hota <alok.hota@intel.com>2019-06-04 13:42:15 -0500
commitbf27318801cc26cf50380c656b7ba290bcab88b2 (patch)
tree83f70f6654967e0125b3e93ab54303ad95a79eaf
parent9d7e71b6c30624911aefd1c224f2173f104edd32 (diff)
downloadmesa-bf27318801cc26cf50380c656b7ba290bcab88b2.tar.gz
gallium/swr: Param defaults for unhandled PIPE_CAPs
Without using this function, we fail the -Wswitch flag when compiling the default debugoptimized mode in Meson Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
-rw-r--r--src/gallium/drivers/swr/swr_screen.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index bee011e4abf..ea63368f750 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -36,6 +36,7 @@
#include "util/u_cpu_detect.h"
#include "util/u_format_s3tc.h"
#include "util/u_string.h"
+#include "util/u_screen.h"
#include "state_tracker/sw_winsys.h"
@@ -387,11 +388,9 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
return (int)(system_memory >> 20);
}
+ default:
+ return u_pipe_screen_get_param_defaults(screen, param);
}
-
- /* should only get here on unhandled cases */
- debug_printf("Unexpected PIPE_CAP %d query\n", param);
- return 0;
}
static int