iris: Clean up compiler warnings about unused
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 29 Mar 2019 18:55:08 +0000 (11:55 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 29 Mar 2019 19:07:26 +0000 (12:07 -0700)
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>
src/gallium/drivers/iris/iris_resolve.c
src/gallium/drivers/iris/iris_screen.c

index 7b8db1a1955afe0b9e6a8e009e942368155c9703..cff405130731005339645da21dd293d50815f0fd 100644 (file)
@@ -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:
index 0d908a00e1f1915dfb4a6a2126453adf374d5d78..b2ca007468276d50720080bc5b70184ccc59202b 100644 (file)
@@ -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)
 {