From 5981ab544562c667c882526c31a6f8c2ce6eba12 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 7 Sep 2016 21:24:08 +0200 Subject: gallium: remove PIPE_BIND_TRANSFER_READ/WRITE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit not used in any useful way Reviewed-by: Eric Anholt Reviewed-by: Nicolai Hähnle Reviewed-by: Roland Scheidegger --- src/gallium/drivers/nouveau/nv30/nv30_screen.c | 6 ++---- src/gallium/drivers/nouveau/nv50/nv50_screen.c | 6 ++---- src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) (limited to 'src/gallium/drivers/nouveau') diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index ed74c3aa249..2ced8f11ef6 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -374,10 +374,8 @@ nv30_screen_is_format_supported(struct pipe_screen *pscreen, return false; } - /* transfers & shared are always supported */ - bindings &= ~(PIPE_BIND_TRANSFER_READ | - PIPE_BIND_TRANSFER_WRITE | - PIPE_BIND_SHARED); + /* shared is always supported */ + bindings &= ~PIPE_BIND_SHARED; return (nv30_format_info(pscreen, format)->bindings & bindings) == bindings; } diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c index 57c0c2bca8b..1ec791d5163 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c +++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c @@ -75,10 +75,8 @@ nv50_screen_is_format_supported(struct pipe_screen *pscreen, sample_count > 1) return false; - /* transfers & shared are always supported */ - bindings &= ~(PIPE_BIND_TRANSFER_READ | - PIPE_BIND_TRANSFER_WRITE | - PIPE_BIND_LINEAR | + /* shared is always supported */ + bindings &= ~(PIPE_BIND_LINEAR | PIPE_BIND_SHARED); return (( nv50_format_table[format].usage | diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c index 0627f3df9e7..0103031da66 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c @@ -84,10 +84,8 @@ nvc0_screen_is_format_supported(struct pipe_screen *pscreen, nouveau_screen(pscreen)->class_3d != NVEA_3D_CLASS) return false; - /* transfers & shared are always supported */ - bindings &= ~(PIPE_BIND_TRANSFER_READ | - PIPE_BIND_TRANSFER_WRITE | - PIPE_BIND_LINEAR | + /* shared is always supported */ + bindings &= ~(PIPE_BIND_LINEAR | PIPE_BIND_SHARED); if (bindings & PIPE_BIND_SHADER_IMAGE && sample_count > 1 && -- cgit v1.2.3