freedreno: Use explicit *_NONE enum for undefined formats
[mesa.git] / src / gallium / drivers / freedreno / a3xx / fd3_resource.c
index 0a58c16abc6d04d676253d3ca53cf71b37e89025..49a7e0babec06f93c54876a1772294ea5abf35c8 100644 (file)
@@ -116,7 +116,7 @@ ok_format(enum pipe_format pfmt)
 {
        enum a3xx_color_fmt fmt = fd3_pipe2color(pfmt);
 
-       if (fmt == ~0)
+       if (fmt == RB_NONE)
                return false;
 
        switch (pfmt) {