mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
amd/radeonsi: add missing stuff for gfx11.5
Signed-off-by: Lang Yu <Lang.Yu@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25836>
This commit is contained in:
parent
f9629fa729
commit
a65aab411f
6 changed files with 15 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ endif
|
|||
files_libradeonsi += ['si_perfetto.cpp', 'si_perfetto.h']
|
||||
|
||||
radeonsi_gfx_libs = []
|
||||
foreach ver : ['6', '7', '8', '9', '10', '103', '11']
|
||||
foreach ver : ['6', '7', '8', '9', '10', '103', '11', '115']
|
||||
radeonsi_gfx_libs += static_library(
|
||||
'radeonsi_gfx@0@'.format(ver),
|
||||
['si_state_draw.cpp'],
|
||||
|
|
|
|||
|
|
@ -693,6 +693,9 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, unsign
|
|||
case GFX11:
|
||||
si_init_draw_functions_GFX11(sctx);
|
||||
break;
|
||||
case GFX11_5:
|
||||
si_init_draw_functions_GFX11_5(sctx);
|
||||
break;
|
||||
default:
|
||||
unreachable("unhandled gfx level");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -408,6 +408,7 @@ bool si_sdma_copy_image(struct si_context *sctx, struct si_texture *dst, struct
|
|||
case GFX10:
|
||||
case GFX10_3:
|
||||
case GFX11:
|
||||
case GFX11_5:
|
||||
if (!si_sdma_v4_v5_copy_texture(sctx, dst, src))
|
||||
return false;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -644,6 +644,7 @@ void si_init_draw_functions_GFX9(struct si_context *sctx);
|
|||
void si_init_draw_functions_GFX10(struct si_context *sctx);
|
||||
void si_init_draw_functions_GFX10_3(struct si_context *sctx);
|
||||
void si_init_draw_functions_GFX11(struct si_context *sctx);
|
||||
void si_init_draw_functions_GFX11_5(struct si_context *sctx);
|
||||
|
||||
/* si_state_msaa.c */
|
||||
void si_init_msaa_functions(struct si_context *sctx);
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@
|
|||
#define GFX(name) name##GFX10_3
|
||||
#elif (GFX_VER == 11)
|
||||
#define GFX(name) name##GFX11
|
||||
#elif (GFX_VER == 115)
|
||||
#define GFX(name) name##GFX11_5
|
||||
#else
|
||||
#error "Unknown gfx level"
|
||||
#endif
|
||||
|
|
@ -554,6 +556,9 @@ void si_cp_dma_prefetch(struct si_context *sctx, struct pipe_resource *buf,
|
|||
case GFX11:
|
||||
si_cp_dma_prefetch_inline<GFX11>(sctx, address, size);
|
||||
break;
|
||||
case GFX11_5:
|
||||
si_cp_dma_prefetch_inline<GFX11_5>(sctx, address, size);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -1682,6 +1687,9 @@ void si_set_vertex_buffer_descriptor(struct si_screen *sscreen, struct si_vertex
|
|||
case GFX11:
|
||||
si_set_vb_descriptor<GFX11>(velems, vb, element_index, out);
|
||||
break;
|
||||
case GFX11_5:
|
||||
si_set_vb_descriptor<GFX11_5>(velems, vb, element_index, out);
|
||||
break;
|
||||
default:
|
||||
unreachable("unhandled gfx level");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,6 +291,7 @@ static int si_init_surface(struct si_screen *sscreen, struct radeon_surf *surfac
|
|||
break;
|
||||
|
||||
case GFX11:
|
||||
case GFX11_5:
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue