Mesa (master): iris: Allow packed RGB pbo uploads
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Oct 8 06:12:07 UTC 2019
Module: Mesa
Branch: master
Commit: 64207ebe6667b5265dfaa4fd10f1469633769f18
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=64207ebe6667b5265dfaa4fd10f1469633769f18
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Wed Jul 10 20:18:38 2019 +0100
iris: Allow packed RGB pbo uploads
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 at whitecape.org>
---
src/gallium/drivers/iris/iris_formats.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c
index 9d5519be23b..9daef41407a 100644
--- a/src/gallium/drivers/iris/iris_formats.c
+++ b/src/gallium/drivers/iris/iris_formats.c
@@ -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)
More information about the mesa-commit
mailing list