freedreno: reorder format check
[mesa.git] / src / gallium / drivers / freedreno / a4xx / fd4_screen.c
index 98287b95145aaa08fd27962e34896ce77b3bacdc..db639c72c1280d051e6611f0ee617cbc46e90091 100644 (file)
@@ -60,9 +60,9 @@ fd4_screen_is_format_supported(struct pipe_screen *pscreen,
        }
 
        if ((usage & PIPE_BIND_SAMPLER_VIEW) &&
+                       (fd4_pipe2tex(format) != (enum a4xx_tex_fmt)~0) &&
                        (target == PIPE_BUFFER ||
-                        util_format_get_blocksize(format) != 12) &&
-                       (fd4_pipe2tex(format) != (enum a4xx_tex_fmt)~0)) {
+                        util_format_get_blocksize(format) != 12)) {
                retval |= PIPE_BIND_SAMPLER_VIEW;
        }