diff options
author | Pierre Moreau <[email protected]> | 2017-05-06 23:47:23 +0200 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-05-07 10:26:37 -0400 |
commit | 27ad060c6e69a408ce903f1dfbaaa6fa82c080a7 (patch) | |
tree | fa28277061414fcfe45ec84fd8a7cbdccd66746b /src/gallium/drivers/nouveau/codegen | |
parent | 8fe5949b081e45af504518b6675cc955e32f95f0 (diff) |
nv50/ir: Replace NV50_PROGRAM_IR_* by PIPE_SHADER_IR_*
Signed-off-by: Pierre Moreau <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp index f811781756e..a000bcbd32f 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp @@ -1233,7 +1233,7 @@ nv50_ir_generate_code(struct nv50_ir_prog_info *info) prog->optLevel = info->optLevel; switch (info->bin.sourceRep) { - case NV50_PROGRAM_IR_TGSI: + case PIPE_SHADER_IR_TGSI: ret = prog->makeFromTGSI(info) ? 0 : -2; break; default: diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h index e7d840df00a..1962ead35a0 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h @@ -54,11 +54,6 @@ struct nv50_ir_varying ubyte si; /* TGSI semantic index */ }; -#define NV50_PROGRAM_IR_TGSI 0 -#define NV50_PROGRAM_IR_SM4 1 -#define NV50_PROGRAM_IR_GLSL 2 -#define NV50_PROGRAM_IR_LLVM 3 - #ifdef DEBUG # define NV50_IR_DEBUG_BASIC (1 << 0) # define NV50_IR_DEBUG_VERBOSE (2 << 0) @@ -95,7 +90,7 @@ struct nv50_ir_prog_info uint32_t *code; uint32_t codeSize; uint32_t instructions; - uint8_t sourceRep; /* NV50_PROGRAM_IR */ + uint8_t sourceRep; /* PIPE_SHADER_IR_* */ const void *source; void *relocData; void *fixupData; |