Mesa (master): svga: make texture_target a ubyte, not a bitfield
Brian Paul
brianp at kemper.freedesktop.org
Wed Jan 6 16:55:25 UTC 2010
Module: Mesa
Branch: master
Commit: d8331aaf5b4847fd969b315045ec6f1185074722
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8331aaf5b4847fd969b315045ec6f1185074722
Author: Brian Paul <brianp at vmware.com>
Date: Wed Jan 6 09:54:34 2010 -0700
svga: make texture_target a ubyte, not a bitfield
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h
index 1309c33..043b991 100644
--- a/src/gallium/drivers/svga/svga_tgsi.h
+++ b/src/gallium/drivers/svga/svga_tgsi.h
@@ -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];
};
More information about the mesa-commit
mailing list