diff options
author | Mauro Rossi <issor.oruam@gmail.com> | 2016-09-10 00:35:58 +0200 |
---|---|---|
committer | Mauro Rossi <issor.oruam@gmail.com> | 2016-09-10 00:35:58 +0200 |
commit | 2f394b35e903912ceb302842e2ed530a2991ccb9 (patch) | |
tree | d2a9af9059e0dd5b1cb799c683315c7331a45846 | |
parent | 397a5a4ec225930eb3b2ab6ffdaee0bd5998a0e0 (diff) | |
download | external_drm_gralloc-2f394b35e903912ceb302842e2ed530a2991ccb9.zip external_drm_gralloc-2f394b35e903912ceb302842e2ed530a2991ccb9.tar.gz external_drm_gralloc-2f394b35e903912ceb302842e2ed530a2991ccb9.tar.bz2 |
remove PIPE_BIND_TRANSFER_READ/WRITE for compatibility with mesa 12.1
This changes are the necessary complement to corresponding
mesa commit 5981ab5 "gallium: remove PIPE_BIND_TRANSFER_READ/WRITE"
Fixes the following building errors:
external/drm_gralloc/gralloc_drm_pipe.c:102:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_READ'
...
external/drm_gralloc/gralloc_drm_pipe.c:104:11: error: use of undeclared identifier 'PIPE_BIND_TRANSFER_WRITE'
-rw-r--r-- | gralloc_drm_pipe.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gralloc_drm_pipe.c b/gralloc_drm_pipe.c index 252f2be..f18ecef 100644 --- a/gralloc_drm_pipe.c +++ b/gralloc_drm_pipe.c @@ -98,11 +98,6 @@ static unsigned get_pipe_bind(int usage) { unsigned bind = PIPE_BIND_SHARED; - if (usage & GRALLOC_USAGE_SW_READ_MASK) - bind |= PIPE_BIND_TRANSFER_READ; - if (usage & GRALLOC_USAGE_SW_WRITE_MASK) - bind |= PIPE_BIND_TRANSFER_WRITE; - if (usage & GRALLOC_USAGE_HW_TEXTURE) bind |= PIPE_BIND_SAMPLER_VIEW; if (usage & GRALLOC_USAGE_HW_RENDER) |