Rework r300 fragprog avoid using bitfield structure.

It seems that bitfield structure lead to some strange
problem on 64bits arch, don't want to waste time debugging
strange things like that so converted pfs_reg_t structure
to a GLuint and use good old masking and shifting spell.
(cherry picked from 2a7de9d095d8e60da12b11aaa1efe664b87b11d3 commit)
This commit is contained in:
Jerome Glisse
2006-12-25 23:34:56 +01:00
parent d79323bd42
commit b8769f318f
2 changed files with 466 additions and 290 deletions
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -41,6 +41,7 @@
#include "r300_context.h"
#include "program_instruction.h"
#if 0
/* representation of a register for emit_arith/swizzle */
typedef struct _pfs_reg_t {
enum {
@@ -58,7 +59,7 @@ typedef struct _pfs_reg_t {
GLboolean no_use:1;
GLboolean valid:1;
} pfs_reg_t;
#endif
typedef struct r300_fragment_program_swizzle {
GLuint length;
GLuint src[4];