freedreno: Use explicit *_NONE enum for undefined formats
[mesa.git] / src / gallium / drivers / freedreno / a3xx / fd3_emit.c
index 2761358a48f3b069a514c57245d62e48f4216a9b..f86d4712c9a1b813e0fd1aca2aac2e9fa9dd2986 100644 (file)
@@ -441,7 +441,7 @@ fd3_emit_vertex_bufs(struct fd_ringbuffer *ring, struct fd3_emit *emit)
                                continue;
 #endif
 
-                       debug_assert(fmt != ~0);
+                       debug_assert(fmt != VFMT_NONE);
 
                        OUT_PKT0(ring, REG_A3XX_VFD_FETCH(j), 2);
                        OUT_RING(ring, A3XX_VFD_FETCH_INSTR_0_FETCHSIZE(fs - 1) |