Commit 1b6e9d24 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3dcompiler: Get rid of the BWRITER_COMPARISON_TYPE typedef.

parent c174a993
......@@ -501,11 +501,10 @@ static void asmparser_texreg2rgb(struct asm_parser *This, DWORD mod, DWORD shift
* go through asmparser_instr).
*/
static void asmparser_instr(struct asm_parser *This, DWORD opcode,
DWORD mod, DWORD shift,
BWRITER_COMPARISON_TYPE comp,
const struct shader_reg *dst,
const struct src_regs *srcs, int expectednsrcs) {
static void asmparser_instr(struct asm_parser *This, DWORD opcode, DWORD mod, DWORD shift,
enum bwriter_comparison_type comp, const struct shader_reg *dst,
const struct src_regs *srcs, int expectednsrcs)
{
struct instruction *instr;
unsigned int i;
BOOL firstreg = TRUE;
......
......@@ -92,7 +92,7 @@ int asmshader_lex(void);
DWORD mod;
DWORD shift;
} modshift;
BWRITER_COMPARISON_TYPE comptype;
enum bwriter_comparison_type comptype;
struct {
DWORD dclusage;
unsigned int regnum;
......
......@@ -54,7 +54,8 @@ enum shader_type
ST_PIXEL
};
typedef enum BWRITER_COMPARISON_TYPE {
enum bwriter_comparison_type
{
BWRITER_COMPARISON_NONE,
BWRITER_COMPARISON_GT,
BWRITER_COMPARISON_EQ,
......@@ -62,7 +63,7 @@ typedef enum BWRITER_COMPARISON_TYPE {
BWRITER_COMPARISON_LT,
BWRITER_COMPARISON_NE,
BWRITER_COMPARISON_LE
} BWRITER_COMPARISON_TYPE;
};
struct constant {
DWORD regnum;
......@@ -89,7 +90,7 @@ struct instruction {
DWORD opcode;
DWORD dstmod;
DWORD shift;
BWRITER_COMPARISON_TYPE comptype;
enum bwriter_comparison_type comptype;
BOOL has_dst;
struct shader_reg dst;
struct shader_reg *src;
......@@ -215,8 +216,8 @@ struct asmparser_backend {
void (*end)(struct asm_parser *This);
void (*instr)(struct asm_parser *This, DWORD opcode, DWORD mod, DWORD shift,
BWRITER_COMPARISON_TYPE comp, const struct shader_reg *dst,
void (*instr)(struct asm_parser *parser, DWORD opcode, DWORD mod, DWORD shift,
enum bwriter_comparison_type comp, const struct shader_reg *dst,
const struct src_regs *srcs, int expectednsrcs);
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment