anv: Fix transfer type assert
authorVinson Lee <vlee@freedesktop.org>
Sun, 8 Oct 2023 17:09:59 +0000 (10:09 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 9 Oct 2023 05:39:41 +0000 (22:39 -0700)
commit16fa4621b8fbb185fd8219be6540183bfe942f0d
tree53ea95142c589e7bc99b1cfdc558b6783eadc0c1
parent1e820ac128506bd66a20fb7345fd562feb9e730b
anv: Fix transfer type assert

Fix defect reported by Coverity Scan.

Constant expression result (CONSTANT_EXPRESSION_RESULT)
always_true_or: The or condition
type != ANV_TIMESTAMP_CAPTURE_AT_CS_STALL || type != ANV_TIMESTAMP_REWRITE_COMPUTE_WALKER
will always be true because type cannot be equal to two different values
at the same time, so it must be not equal to at least one of them.

Fixes: 5112b421462 ("anv: Handle end of pipe with MI_FLUSH_DW on transfer queue")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25605>
src/intel/vulkan/genX_cmd_buffer.c