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:
File diff suppressed because it is too large
Load Diff
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user