freedreno: a2xx: ir2 cleanup
authorJonathan Marek <jonathan@marek.ca>
Wed, 23 Jan 2019 22:43:28 +0000 (17:43 -0500)
committerRob Clark <robdclark@gmail.com>
Mon, 28 Jan 2019 18:04:41 +0000 (13:04 -0500)
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_program.c
src/gallium/drivers/freedreno/a2xx/ir2_nir.c

index da020443bd940daf800a1846adefb406b80924bd..cbb18f84c4ca668c88ce202ed53a36a64a48f53d 100644 (file)
@@ -232,7 +232,7 @@ fd2_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring,
 
        vp = prog->vp;
 
-    /* find variant matching the linked fragment shader */
+       /* find variant matching the linked fragment shader */
        if (!binning) {
                fp = prog->fp;
                for (variant = 1; variant < ARRAY_SIZE(vp->variant); variant++) {
index 8345e94c36372a1322bc8f1b48a470948ad7622c..9b81fc4f55870f816af975edeabc20f141d9dbb7 100644 (file)
@@ -292,7 +292,6 @@ instr_create_alu(struct ir2_context *ctx, nir_op opcode, unsigned ncomp)
                [nir_op_fmov] = {MAXs, MAXv},
                [nir_op_fsign] = {-1, CNDGTEv},
                [nir_op_fnot] = {SETEs, SETEv},
-      [nir_op_f2b32] = {SETNEs, SETNEv},
                [nir_op_for] = {MAXs, MAXv},
                [nir_op_fand] = {MINs, MINv},
                [nir_op_fxor] = {-1, SETNEv},
@@ -446,7 +445,6 @@ emit_alu(struct ir2_context *ctx, nir_alu_instr * alu)
                instr->src[1] = tmp;
                break;
        case nir_op_fcsel:
-       case nir_op_bcsel:
                tmp = instr->src[1];
                instr->src[1] = instr->src[2];
                instr->src[2] = tmp;