vc4: Drop redundant check for is_tmu_write().
authorEric Anholt <eric@anholt.net>
Sat, 25 Oct 2014 11:12:16 +0000 (12:12 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 29 Oct 2014 00:15:36 +0000 (17:15 -0700)
This function is only called when it would return true.

src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c

index fdce0335e12213b8a5d93d8ac2d7349ff05eac08..03c7f23e92dcecd43464913a22b5e4ea7cdcb70c 100644 (file)
@@ -94,9 +94,6 @@ check_tmu_write(struct vc4_validated_shader_info *validated_shader,
 {
        int tmu = waddr > QPU_W_TMU0_B;
 
-       if (!is_tmu_write(waddr))
-               return true;
-
        if (validation_state->tmu_write_count[tmu] >= 4) {
                DRM_ERROR("TMU%d got too many parameters before dispatch\n",
                          tmu);