修訂 | 2f394b35e903912ceb302842e2ed530a2991ccb9 (tree) |
---|---|
時間 | 2016-09-10 07:35:58 |
作者 | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Mauro Rossi |
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'
@@ -98,11 +98,6 @@ static unsigned get_pipe_bind(int usage) | ||
98 | 98 | { |
99 | 99 | unsigned bind = PIPE_BIND_SHARED; |
100 | 100 | |
101 | - if (usage & GRALLOC_USAGE_SW_READ_MASK) | |
102 | - bind |= PIPE_BIND_TRANSFER_READ; | |
103 | - if (usage & GRALLOC_USAGE_SW_WRITE_MASK) | |
104 | - bind |= PIPE_BIND_TRANSFER_WRITE; | |
105 | - | |
106 | 101 | if (usage & GRALLOC_USAGE_HW_TEXTURE) |
107 | 102 | bind |= PIPE_BIND_SAMPLER_VIEW; |
108 | 103 | if (usage & GRALLOC_USAGE_HW_RENDER) |