gallium/draw: Fix enum type taken by draw_get_shader_param().
authorMichel Dänzer <daenzer@vmware.com>
Tue, 3 May 2011 11:23:14 +0000 (13:23 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Tue, 3 May 2011 14:33:15 +0000 (16:33 +0200)
Pointed out by clang:

src/gallium/auxiliary/draw/draw_context.h:251:41: warning: implicit conversion
from enumeration type 'enum pipe_cap' to different enumeration type
'enum pipe_shader_cap' [-Wconversion]
      return tgsi_exec_get_shader_param(param);
             ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~

src/gallium/auxiliary/draw/draw_context.h

index 7db75b71b43879d33b67269a9eead68c7eb42b5e..5523e44563bfae3a5e6a57aa0867ed1b57b44af7 100644 (file)
@@ -243,7 +243,7 @@ boolean draw_need_pipeline(const struct draw_context *draw,
                            unsigned prim );
 
 static INLINE int
-draw_get_shader_param(unsigned shader, enum pipe_cap param)
+draw_get_shader_param(unsigned shader, enum pipe_shader_cap param)
 {
    switch(shader) {
    case PIPE_SHADER_VERTEX: