OSDN Git Service

freedreno/a3xx/compiler: add SSG
authorRob Clark <robclark@freedesktop.org>
Wed, 26 Feb 2014 19:34:05 +0000 (14:34 -0500)
committerRob Clark <robclark@freedesktop.org>
Sun, 2 Mar 2014 16:26:35 +0000 (11:26 -0500)
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c
src/gallium/drivers/freedreno/a3xx/fd3_compiler_old.c

index 14d95ba..ae88d6e 100644 (file)
@@ -1738,6 +1738,7 @@ static const struct instr_translater translaters[TGSI_OPCODE_LAST] = {
        INSTR(CLAMP,        trans_clamp),
        INSTR(FLR,          instr_cat2, .opc = OPC_FLOOR_F),
        INSTR(ROUND,        instr_cat2, .opc = OPC_RNDNE_F),
+       INSTR(SSG,          instr_cat2, .opc = OPC_SIGN_F),
        INSTR(ARL,          trans_arl),
        INSTR(EX2,          instr_cat4, .opc = OPC_EXP2),
        INSTR(LG2,          instr_cat4, .opc = OPC_LOG2),
index d40ee5c..9a0bbb5 100644 (file)
@@ -1266,6 +1266,7 @@ static const struct instr_translater translaters[TGSI_OPCODE_LAST] = {
        INSTR(CLAMP,        trans_clamp),
        INSTR(FLR,          instr_cat2, .opc = OPC_FLOOR_F),
        INSTR(ROUND,        instr_cat2, .opc = OPC_RNDNE_F),
+       INSTR(SSG,          instr_cat2, .opc = OPC_SIGN_F),
        INSTR(ARL,          trans_arl),
        INSTR(EX2,          instr_cat4, .opc = OPC_EXP2),
        INSTR(LG2,          instr_cat4, .opc = OPC_LOG2),