aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-10-25 12:12:16 +0100
committerEric Anholt <[email protected]>2014-10-28 17:15:36 -0700
commit926ab7dfa54b7f15709455ff4d75746d339ab5a3 (patch)
tree691ab0ad3dd23163d7a28f2ad41fecf1abcc4ea2 /src/gallium/drivers
parent8911879dec564ab2ef343d58e6de4fd558e35c3d (diff)
vc4: Drop redundant check for is_tmu_write().
This function is only called when it would return true.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/vc4/kernel/vc4_validate_shaders.c3
1 files changed, 0 insertions, 3 deletions
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);