diff options
author | Marek Olšák <[email protected]> | 2016-04-16 14:41:57 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-22 01:30:39 +0200 |
commit | af249a7da9bf2621ab836d5074ef692677b11bbf (patch) | |
tree | 5e006ea5552461b793fe85b9c3c91f86fa716c45 /src/gallium/state_trackers/nine | |
parent | fb523cb6ad3ffef22ab4b9cce9e53859c17c5739 (diff) |
gallium: use PIPE_SHADER_* everywhere, remove TGSI_PROCESSOR_*
Acked-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_ff.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/nine_shader.c | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/gallium/state_trackers/nine/nine_ff.c b/src/gallium/state_trackers/nine/nine_ff.c index d5daabd6661..7b26c954d3f 100644 --- a/src/gallium/state_trackers/nine/nine_ff.c +++ b/src/gallium/state_trackers/nine/nine_ff.c @@ -328,7 +328,7 @@ static void * nine_ff_build_vs(struct NineDevice9 *device, struct vs_build_ctx *vs) { const struct nine_ff_vs_key *key = vs->key; - struct ureg_program *ureg = ureg_create(TGSI_PROCESSOR_VERTEX); + struct ureg_program *ureg = ureg_create(PIPE_SHADER_VERTEX); struct ureg_dst oPos, oCol[2], oPsz, oFog; struct ureg_dst rVtx, rNrm; struct ureg_dst r[8]; @@ -1213,7 +1213,7 @@ static void * nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key) { struct ps_build_ctx ps; - struct ureg_program *ureg = ureg_create(TGSI_PROCESSOR_FRAGMENT); + struct ureg_program *ureg = ureg_create(PIPE_SHADER_FRAGMENT); struct ureg_dst oCol; unsigned i, s; const unsigned texcoord_sn = get_texcoord_sn(device->screen); diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index eb6479bb4d9..dc886baba53 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -452,7 +452,7 @@ struct shader_translator BYTE major; BYTE minor; } version; - unsigned processor; /* TGSI_PROCESSOR_VERTEX/FRAMGENT */ + unsigned processor; /* PIPE_SHADER_VERTEX/FRAMGENT */ unsigned num_constf_allowed; unsigned num_consti_allowed; unsigned num_constb_allowed; @@ -517,8 +517,8 @@ struct shader_translator int16_t op_info_map[D3DSIO_BREAKP + 1]; }; -#define IS_VS (tx->processor == TGSI_PROCESSOR_VERTEX) -#define IS_PS (tx->processor == TGSI_PROCESSOR_FRAGMENT) +#define IS_VS (tx->processor == PIPE_SHADER_VERTEX) +#define IS_PS (tx->processor == PIPE_SHADER_FRAGMENT) #define FAILURE_VOID(cond) if ((cond)) {tx->failure=1;return;} @@ -2857,7 +2857,7 @@ create_op_info_map(struct shader_translator *tx) for (i = 0; i < Elements(tx->op_info_map); ++i) tx->op_info_map[i] = -1; - if (tx->processor == TGSI_PROCESSOR_VERTEX) { + if (tx->processor == PIPE_SHADER_VERTEX) { for (i = 0; i < Elements(inst_table); ++i) { assert(inst_table[i].sio < Elements(tx->op_info_map)); if (inst_table[i].vert_version.min <= version && @@ -2928,8 +2928,8 @@ sm1_read_version(struct shader_translator *tx) tx->version.minor = D3DSHADER_VERSION_MINOR(tok); switch (tok >> 16) { - case NINED3D_SM1_VS: tx->processor = TGSI_PROCESSOR_VERTEX; break; - case NINED3D_SM1_PS: tx->processor = TGSI_PROCESSOR_FRAGMENT; break; + case NINED3D_SM1_VS: tx->processor = PIPE_SHADER_VERTEX; break; + case NINED3D_SM1_PS: tx->processor = PIPE_SHADER_FRAGMENT; break; default: DBG("Invalid shader type: %x\n", tok); tx->processor = ~0; @@ -3258,8 +3258,8 @@ static inline unsigned tgsi_processor_from_type(unsigned shader_type) { switch (shader_type) { - case PIPE_SHADER_VERTEX: return TGSI_PROCESSOR_VERTEX; - case PIPE_SHADER_FRAGMENT: return TGSI_PROCESSOR_FRAGMENT; + case PIPE_SHADER_VERTEX: return PIPE_SHADER_VERTEX; + case PIPE_SHADER_FRAGMENT: return PIPE_SHADER_FRAGMENT; default: return ~0; } @@ -3348,7 +3348,7 @@ nine_translate_shader(struct NineDevice9 *device, struct nine_shader_info *info) DBG("Shader type mismatch: %u / %u !\n", tx->processor, processor); goto out; } - DUMP("%s%u.%u\n", processor == TGSI_PROCESSOR_VERTEX ? "VS" : "PS", + DUMP("%s%u.%u\n", processor == PIPE_SHADER_VERTEX ? "VS" : "PS", tx->version.major, tx->version.minor); tx->ureg = ureg_create(processor); |