summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Girlin <vadimgirlin@gmail.com>2013-02-01 13:51:25 +0400
committerVadim Girlin <vadimgirlin@gmail.com>2013-04-19 01:11:10 +0400
commit89a5f1105452606486f2d85b5ead03dd52b12a8e (patch)
tree99fedc21ed1c93f4259c7c26d57fdc0a32e3fa35
parentf732036f12d67a96f546c11236fa635b3eda6e9c (diff)
r600g: always create reverse lookup isa tables
-rw-r--r--src/gallium/drivers/r600/r600_isa.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gallium/drivers/r600/r600_isa.c b/src/gallium/drivers/r600/r600_isa.c
index 54cdfff8bb..4c6ccacdd0 100644
--- a/src/gallium/drivers/r600/r600_isa.c
+++ b/src/gallium/drivers/r600/r600_isa.c
@@ -28,19 +28,12 @@
#include "r600_isa.h"
int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) {
+ unsigned i;
assert(ctx->chip_class >= R600 && ctx->chip_class <= CAYMAN);
isa->hw_class = ctx->chip_class - R600;
- /* reverse lookup maps are required for bytecode parsing only,
- * currently it's needed for handling the bytestream from llvm backend */
-#if defined R600_USE_LLVM || defined HAVE_OPENCL
- unsigned i, use_llvm;
-
- use_llvm = !(ctx->screen->debug_flags & DBG_NO_LLVM);
-
- if (!use_llvm)
- return 0;
+ /* reverse lookup maps are required for bytecode parsing */
isa->alu_op2_map = calloc(256, sizeof(unsigned));
if (!isa->alu_op2_map)
@@ -88,7 +81,6 @@ int r600_isa_init(struct r600_context *ctx, struct r600_isa *isa) {
isa->cf_map[opc] = i + 1;
}
-#endif
return 0;
}