iris: Allow packed RGB pbo uploads
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 10 Jul 2019 19:18:38 +0000 (20:18 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Oct 2019 06:11:38 +0000 (23:11 -0700)
Hitting any fallback path on Broxton as we require clflushing the whole
buffer even for an upload of a subtexture. However, since gallium
provides a pbo upload path, allow it to sample packed RGB if supported.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_formats.c

index 9d5519be23b64e1d6749cd28c482ca5fe3547eea..9daef41407aab9e1456fbed6a5a81fb581bd708e 100644 (file)
@@ -486,8 +486,8 @@ iris_is_format_supported(struct pipe_screen *pscreen,
        *
        * We do need to advertise 32-bit RGB for texture buffers though.
        */
-      supported &= fmtl->bpb != 24 && fmtl->bpb != 48 &&
-                   (fmtl->bpb != 96 || target == PIPE_BUFFER);
+      if (target != PIPE_BUFFER)
+         supported &= fmtl->bpb != 24 && fmtl->bpb != 48 && fmtl->bpb != 96;
    }
 
    if (usage & PIPE_BIND_VERTEX_BUFFER)