iris: Clean up compiler warnings about unused
Removed a few unused variables and iris_getparam_boolean(). Kept 'name' around since there's a commented debug that make use of it. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
8d9c2044a4
commit
3b20ca34ae
|
@ -565,7 +565,7 @@ iris_hiz_exec(struct iris_context *ice,
|
|||
{
|
||||
assert(iris_resource_level_has_hiz(res, level));
|
||||
assert(op != ISL_AUX_OP_NONE);
|
||||
const char *name = NULL;
|
||||
UNUSED const char *name = NULL;
|
||||
|
||||
switch (op) {
|
||||
case ISL_AUX_OP_FULL_RESOLVE:
|
||||
|
|
|
@ -307,8 +307,6 @@ iris_get_shader_param(struct pipe_screen *pscreen,
|
|||
enum pipe_shader_type p_stage,
|
||||
enum pipe_shader_cap param)
|
||||
{
|
||||
struct iris_screen *screen = (struct iris_screen *)pscreen;
|
||||
struct brw_compiler *compiler = screen->compiler;
|
||||
gl_shader_stage stage = stage_from_pipe(p_stage);
|
||||
|
||||
/* this is probably not totally correct.. but it's a start: */
|
||||
|
@ -388,7 +386,6 @@ iris_get_compute_param(struct pipe_screen *pscreen,
|
|||
void *ret)
|
||||
{
|
||||
struct iris_screen *screen = (struct iris_screen *)pscreen;
|
||||
struct brw_compiler *compiler = screen->compiler;
|
||||
const struct gen_device_info *devinfo = &screen->devinfo;
|
||||
|
||||
const unsigned max_threads = MIN2(64, devinfo->max_cs_threads);
|
||||
|
@ -502,13 +499,6 @@ iris_getparam(struct iris_screen *screen, int param, int *value)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static bool
|
||||
iris_getparam_boolean(struct iris_screen *screen, int param)
|
||||
{
|
||||
int value = 0;
|
||||
return (iris_getparam(screen, param, &value) == 0) && value;
|
||||
}
|
||||
|
||||
static int
|
||||
iris_getparam_integer(struct iris_screen *screen, int param)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue