mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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>
This commit is contained in:
parent
1ad26f9417
commit
d3dfa86a30
1 changed files with 3 additions and 4 deletions
|
|
@ -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"
|
||||
|
||||
|
|
@ -385,11 +386,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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue