OSDN Git Service

i965: Fix register types in dump_instructions(), again.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Mar 2014 07:04:35 +0000 (00:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Mar 2014 20:17:57 +0000 (13:17 -0700)
commit01d9023a9b9a50b42f7a4ef4799d0e35e0b045ca
tree5dd0fc7278453b775bd0bb69764080e923aba878
parent4d2e79269a97c403a6384e0f5164b9f54b6a5f61
i965: Fix register types in dump_instructions(), again.

In commit e57d77280efcbfd6579a88f071426653287ef833, I fixed this for
destinations in the Vec4 backend, and sources in the scalar backend.
But not both types in both backends.

To prevent this mess from continuing, make the reg_encoding table
static, so only the disassembler can use it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_disasm.c
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp