Mesa (master): virgl: do not warn about display-target binding
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Apr 11 08:09:13 UTC 2019
Module: Mesa
Branch: master
Commit: 7394ef4a7293e7ec6322faf18e7ddeef9c2c0183
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7394ef4a7293e7ec6322faf18e7ddeef9c2c0183
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Wed Apr 10 12:22:34 2019 +0200
virgl: do not warn about display-target binding
We never want to display a transfer-temp surface, so let's ignore that
flag when calculating the new binding flags.
Signed-off-by: Erik Faye-Lund <erik.faye-lund at collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh at chromium.org>
---
src/gallium/drivers/virgl/virgl_texture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c
index c5226f21421..75ee059fe76 100644
--- a/src/gallium/drivers/virgl/virgl_texture.c
+++ b/src/gallium/drivers/virgl/virgl_texture.c
@@ -64,7 +64,7 @@ static void virgl_copy_region_with_blit(struct pipe_context *pipe,
static unsigned temp_bind(unsigned orig)
{
unsigned warn = ~(PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL |
- PIPE_BIND_SAMPLER_VIEW);
+ PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_DISPLAY_TARGET);
if (orig & warn)
fprintf(stderr, "Waring, possibly unhandled bind: %x\n", orig & warn);
return orig & (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET);
More information about the mesa-commit
mailing list