Mesa (master): r600g: remove some now unneeded code from r600_bc_vtx_build
Christian König
deathsimple at kemper.freedesktop.org
Wed Mar 9 13:49:11 UTC 2011
Module: Mesa
Branch: master
Commit: bb4f2a0f3513a20fc3bd27ad4c278e370e5491a8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb4f2a0f3513a20fc3bd27ad4c278e370e5491a8
Author: Christian König <deathsimple at vodafone.de>
Date: Wed Mar 9 13:54:35 2011 +0100
r600g: remove some now unneeded code from r600_bc_vtx_build
---
src/gallium/drivers/r600/r600_asm.c | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 4ca3079..1504ef6 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1357,31 +1357,7 @@ int r600_bc_add_cfinst(struct r600_bc *bc, int inst)
/* common to all 3 families */
static int r600_bc_vtx_build(struct r600_bc *bc, struct r600_bc_vtx *vtx, unsigned id)
{
- unsigned fetch_resource_start = 0;
-
- /* check if we are fetch shader */
- /* fetch shader can also access vertex resource,
- * first fetch shader resource is at 160
- */
- if (bc->type == -1) {
- switch (bc->chiprev) {
- /* r600 */
- case CHIPREV_R600:
- /* r700 */
- case CHIPREV_R700:
- fetch_resource_start = 160;
- break;
- /* evergreen */
- case CHIPREV_EVERGREEN:
- fetch_resource_start = 0;
- break;
- default:
- fprintf(stderr, "%s:%s:%d unknown chiprev %d\n",
- __FILE__, __func__, __LINE__, bc->chiprev);
- break;
- }
- }
- bc->bytecode[id++] = S_SQ_VTX_WORD0_BUFFER_ID(vtx->buffer_id + fetch_resource_start) |
+ bc->bytecode[id++] = S_SQ_VTX_WORD0_BUFFER_ID(vtx->buffer_id) |
S_SQ_VTX_WORD0_FETCH_TYPE(vtx->fetch_type) |
S_SQ_VTX_WORD0_SRC_GPR(vtx->src_gpr) |
S_SQ_VTX_WORD0_SRC_SEL_X(vtx->src_sel_x) |
More information about the mesa-commit
mailing list