svga: make texture_target a ubyte, not a bitfield
authorBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2010 16:54:34 +0000 (09:54 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2010 16:54:36 +0000 (09:54 -0700)
gcc won't let us take the address of a bitfield in the svga_fs_key_size()
function.

src/gallium/drivers/svga/svga_tgsi.h

index 1309c339237d372746c55a6457eb4c4e0edc8aa1..043b99115f7988d0b26bca37f9a9d77dee42387a 100644 (file)
@@ -56,7 +56,7 @@ struct svga_fs_compile_key
       unsigned compare_func:3;
       unsigned unnormalized:1;
       unsigned width_height_idx:7;
-      unsigned texture_target:8;
+      ubyte texture_target;
    } tex[PIPE_MAX_SAMPLERS];
 };