diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 04fc9c5..56eed57 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -427,6 +427,8 @@ static int r600_get_video_param(struct pipe_screen *screen, } } +#if HAVE_LLVM + const char *r600_get_llvm_processor_name(enum radeon_family family) { switch (family) { @@ -632,6 +634,8 @@ static int r600_get_compute_param(struct pipe_screen *screen, return 0; } +#endif /* HAVE_LLVM */ + static uint64_t r600_get_timestamp(struct pipe_screen *screen) { struct r600_common_screen *rscreen = (struct r600_common_screen*)screen; @@ -821,7 +825,9 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen, rscreen->b.get_name = r600_get_name; rscreen->b.get_vendor = r600_get_vendor; +#if HAVE_LLVM rscreen->b.get_compute_param = r600_get_compute_param; +#endif rscreen->b.get_paramf = r600_get_paramf; rscreen->b.get_driver_query_info = r600_get_driver_query_info; rscreen->b.get_timestamp = r600_get_timestamp;