From 926ab7dfa54b7f15709455ff4d75746d339ab5a3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 25 Oct 2014 12:12:16 +0100 Subject: vc4: Drop redundant check for is_tmu_write(). This function is only called when it would return true. --- src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c b/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c index fdce0335e12..03c7f23e92d 100644 --- a/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c +++ b/src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c @@ -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); -- cgit v1.2.3