mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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: 5112b42146 ("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>
This commit is contained in:
parent
1e820ac128
commit
16fa4621b8
1 changed files with 1 additions and 1 deletions
|
|
@ -8158,7 +8158,7 @@ void genX(cmd_emit_timestamp)(struct anv_batch *batch,
|
|||
* transfer queue.
|
||||
*/
|
||||
if (batch->engine_class == INTEL_ENGINE_CLASS_COPY) {
|
||||
assert(type != ANV_TIMESTAMP_CAPTURE_AT_CS_STALL ||
|
||||
assert(type != ANV_TIMESTAMP_CAPTURE_AT_CS_STALL &&
|
||||
type != ANV_TIMESTAMP_REWRITE_COMPUTE_WALKER);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue