diff options
author | Erik Faye-Lund <[email protected]> | 2019-04-10 12:18:33 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-04-11 09:53:15 +0200 |
commit | 27d94a83cd070baae1d0196194796ea4ef30691d (patch) | |
tree | 7f10e408165bfbf521bc19bd4af19ad824971ea1 /src/gallium/drivers/virgl/virgl_texture.c | |
parent | 8f1a147d68d14202b3191a4a38a7b3ebcb9487ea (diff) |
virgl: only warn about unchecked flags
The other flags are already vetted, so there's no point in reporting
them.
Signed-off-by: Erik Faye-Lund <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_texture.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_texture.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_texture.c b/src/gallium/drivers/virgl/virgl_texture.c index 755b7686dd1..c5226f21421 100644 --- a/src/gallium/drivers/virgl/virgl_texture.c +++ b/src/gallium/drivers/virgl/virgl_texture.c @@ -63,9 +63,10 @@ static void virgl_copy_region_with_blit(struct pipe_context *pipe, static unsigned temp_bind(unsigned orig) { - if (orig & ~(PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL | - PIPE_BIND_SAMPLER_VIEW)) - fprintf(stderr, "Waring, possibly unhandled bind: %x\n", orig); + unsigned warn = ~(PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL | + PIPE_BIND_SAMPLER_VIEW); + if (orig & warn) + fprintf(stderr, "Waring, possibly unhandled bind: %x\n", orig & warn); return orig & (PIPE_BIND_DEPTH_STENCIL | PIPE_BIND_RENDER_TARGET); } |