radeonsi: rename si_state_draw.c to .cpp

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7807>
This commit is contained in:
Marek Olšák
2020-08-25 22:51:03 -04:00
parent 639b1366d0
commit 6347b0b5c4
3 changed files with 8 additions and 2 deletions
@@ -39,7 +39,7 @@ C_SOURCES := \
si_shaderlib_tgsi.c \
si_state.c \
si_state_binning.c \
si_state_draw.c \
si_state_draw.cpp \
si_state_msaa.c \
si_state_shaders.c \
si_state_streamout.c \
+1 -1
View File
@@ -60,7 +60,7 @@ files_libradeonsi = files(
'si_state.c',
'si_state.h',
'si_state_binning.c',
'si_state_draw.c',
'si_state_draw.cpp',
'si_state_msaa.c',
'si_state_shaders.c',
'si_state_streamout.c',
@@ -1111,6 +1111,7 @@ static void si_emit_draw_packets(struct si_context *sctx, const struct pipe_draw
}
}
extern "C"
void si_emit_surface_sync(struct si_context *sctx, struct radeon_cmdbuf *cs, unsigned cp_coher_cntl)
{
bool compute_ib = !sctx->has_graphics || cs == &sctx->prim_discard_compute_cs;
@@ -1141,6 +1142,7 @@ void si_emit_surface_sync(struct si_context *sctx, struct radeon_cmdbuf *cs, uns
sctx->context_roll = true;
}
extern "C"
void si_prim_discard_signal_next_compute_ib_start(struct si_context *sctx)
{
if (!si_compute_prim_discard_enabled(sctx))
@@ -1166,6 +1168,7 @@ void si_prim_discard_signal_next_compute_ib_start(struct si_context *sctx)
*sctx->last_pkt3_write_data = PKT3(PKT3_NOP, 3, 0);
}
extern "C"
void gfx10_emit_cache_flush(struct si_context *ctx)
{
struct radeon_cmdbuf *cs = &ctx->gfx_cs;
@@ -1345,6 +1348,7 @@ void gfx10_emit_cache_flush(struct si_context *ctx)
ctx->flags = 0;
}
extern "C"
void si_emit_cache_flush(struct si_context *sctx)
{
struct radeon_cmdbuf *cs = &sctx->gfx_cs;
@@ -2456,6 +2460,7 @@ static void si_draw_rectangle(struct blitter_context *blitter, void *vertex_elem
si_draw_vbo(pipe, &info, NULL, &draw, 1);
}
extern "C"
void si_trace_emit(struct si_context *sctx)
{
struct radeon_cmdbuf *cs = &sctx->gfx_cs;
@@ -2470,6 +2475,7 @@ void si_trace_emit(struct si_context *sctx)
u_log_flush(sctx->log);
}
extern "C"
void si_init_draw_functions(struct si_context *sctx)
{
sctx->b.draw_vbo = si_draw_vbo;