mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
r600: replace MAYBE_UNUSED with specific #ifdef
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
745bae40ad
commit
ab9c76769a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue