gallium: s/unsigned/enum pipe_shader_type/ for get_compiler_options()
authorBrian Paul <brianp@vmware.com>
Sun, 5 Mar 2017 19:35:22 +0000 (12:35 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 8 Mar 2017 15:50:20 +0000 (08:50 -0700)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/vc4/vc4_program.c
src/gallium/drivers/vc4/vc4_screen.h
src/gallium/include/pipe/p_screen.h

index 21753439cf67d7ec45bc8e078190781a4ec2f271..3d45723b62dae8393de895dd7dfa155e25cfee3e 100644 (file)
@@ -2197,7 +2197,8 @@ static const nir_shader_compiler_options nir_options = {
 
 const void *
 vc4_screen_get_compiler_options(struct pipe_screen *pscreen,
-                                enum pipe_shader_ir ir, unsigned shader)
+                                enum pipe_shader_ir ir,
+                                enum pipe_shader_type shader)
 {
         return &nir_options;
 }
index 54751ff0b0dd1ef4e860fcc154c6629c0f0ab709..34d15381ae719689c37147c81d7dbfba2395f500 100644 (file)
@@ -112,7 +112,8 @@ vc4_screen_bo_from_handle(struct pipe_screen *pscreen,
 
 const void *
 vc4_screen_get_compiler_options(struct pipe_screen *pscreen,
-                                enum pipe_shader_ir ir, unsigned shader);
+                                enum pipe_shader_ir ir,
+                                enum pipe_shader_type shader);
 
 extern uint32_t vc4_debug;
 
index 1606c2da96ff055cc568025dacbb4ad9bd7419eb..8b4239c61aedbf661ccc3f8ce238657ef5c3cf72 100644 (file)
@@ -319,7 +319,7 @@ struct pipe_screen {
     */
    const void *(*get_compiler_options)(struct pipe_screen *screen,
                                       enum pipe_shader_ir ir,
-                                      unsigned shader);
+                                      enum pipe_shader_type shader);
 
    /**
     * Returns a pointer to a driver-specific on-disk shader cache. If the