aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-07-04 14:28:10 +0100
committerEric Engestrom <[email protected]>2019-07-31 09:41:05 +0100
commitab9c76769ad070490434aa7104d11958e1fc49d4 (patch)
treee042ff3aa7e845f1b7a853ecba5b201f4405f96d /src
parent745bae40adfdc6c6107cd104dcdc5195e95b0230 (diff)
r600: replace MAYBE_UNUSED with specific #ifdef
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index dea01e48505..0dad0f04c1a 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -84,13 +84,12 @@ writable images will consume TEX slots, VTX slots too because of linear indexing
*/
-MAYBE_UNUSED
+#ifdef HAVE_OPENCL
static void radeon_shader_binary_init(struct r600_shader_binary *b)
{
memset(b, 0, sizeof(*b));
}
-MAYBE_UNUSED
static void radeon_shader_binary_clean(struct r600_shader_binary *b)
{
if (!b)
@@ -102,6 +101,7 @@ static void radeon_shader_binary_clean(struct r600_shader_binary *b)
FREE(b->relocs);
FREE(b->disasm_string);
}
+#endif
struct r600_resource *r600_compute_buffer_alloc_vram(struct r600_screen *screen,
unsigned size)