diff options
author | Marek Olšák <[email protected]> | 2014-01-22 01:20:21 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-01-28 01:39:37 +0100 |
commit | 4df3f25fa2c0bcf38be4a4fdcbb37428e4af10bd (patch) | |
tree | d34c3e4f2700b9764433e7f2c3b7befbf509bb30 /src/gallium/drivers/radeonsi/si_pipe.c | |
parent | f4612105e82834e6f46a70dd90c81e982b6506ca (diff) |
r600g,radeonsi: consolidate get_name and get_vendor queries
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 4879b2ff914..aeccab1dd66 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -218,10 +218,6 @@ fail: /* * pipe_screen */ -static const char* si_get_vendor(struct pipe_screen* pscreen) -{ - return "X.Org"; -} const char *si_get_llvm_processor_name(enum radeon_family family) { @@ -243,29 +239,6 @@ const char *si_get_llvm_processor_name(enum radeon_family family) } } -static const char *si_get_family_name(enum radeon_family family) -{ - switch(family) { - case CHIP_TAHITI: return "AMD TAHITI"; - case CHIP_PITCAIRN: return "AMD PITCAIRN"; - case CHIP_VERDE: return "AMD CAPE VERDE"; - case CHIP_OLAND: return "AMD OLAND"; - case CHIP_HAINAN: return "AMD HAINAN"; - case CHIP_BONAIRE: return "AMD BONAIRE"; - case CHIP_KAVERI: return "AMD KAVERI"; - case CHIP_KABINI: return "AMD KABINI"; - case CHIP_HAWAII: return "AMD HAWAII"; - default: return "AMD unknown"; - } -} - -static const char* si_get_name(struct pipe_screen* pscreen) -{ - struct si_screen *sscreen = (struct si_screen *)pscreen; - - return si_get_family_name(sscreen->b.family); -} - static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param) { struct si_screen *sscreen = (struct si_screen *)pscreen; @@ -621,8 +594,6 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws) /* Set functions first. */ sscreen->b.b.context_create = si_create_context; sscreen->b.b.destroy = si_destroy_screen; - sscreen->b.b.get_name = si_get_name; - sscreen->b.b.get_vendor = si_get_vendor; sscreen->b.b.get_param = si_get_param; sscreen->b.b.get_shader_param = si_get_shader_param; sscreen->b.b.get_paramf = si_get_paramf; |