mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
radeonsi: use the restrict keyword for draw parameters
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33482>
This commit is contained in:
parent
95a9df811a
commit
53ae218dcd
1 changed files with 13 additions and 13 deletions
|
|
@ -1093,7 +1093,7 @@ static void si_emit_ia_multi_vgt_param(struct si_context *sctx,
|
|||
template <amd_gfx_level GFX_VERSION, si_has_tess HAS_TESS, si_has_gs HAS_GS, si_has_ngg NGG,
|
||||
si_is_draw_vertex_state IS_DRAW_VERTEX_STATE> ALWAYS_INLINE
|
||||
static void si_emit_draw_registers(struct si_context *sctx,
|
||||
const struct pipe_draw_indirect_info *indirect,
|
||||
const struct pipe_draw_indirect_info *restrict indirect,
|
||||
enum mesa_prim prim, unsigned index_size,
|
||||
unsigned instance_count, bool primitive_restart,
|
||||
unsigned restart_index, unsigned min_vertex_count)
|
||||
|
|
@ -1235,12 +1235,12 @@ void si_emit_buffered_compute_sh_regs(struct si_context *sctx)
|
|||
template <amd_gfx_level GFX_VERSION, si_has_tess HAS_TESS, si_has_gs HAS_GS, si_has_ngg NGG,
|
||||
si_is_draw_vertex_state IS_DRAW_VERTEX_STATE, si_has_sh_pairs_packed HAS_SH_PAIRS_PACKED,
|
||||
si_alt_hiz_logic ALT_HIZ_LOGIC> ALWAYS_INLINE
|
||||
static void si_emit_draw_packets(struct si_context *sctx, const struct pipe_draw_info *info,
|
||||
static void si_emit_draw_packets(struct si_context *sctx, const struct pipe_draw_info *restrict info,
|
||||
unsigned drawid_base,
|
||||
const struct pipe_draw_indirect_info *indirect,
|
||||
const struct pipe_draw_start_count_bias *draws,
|
||||
const struct pipe_draw_indirect_info *restrict indirect,
|
||||
const struct pipe_draw_start_count_bias *restrict draws,
|
||||
unsigned num_draws,
|
||||
struct pipe_resource *indexbuf, unsigned index_size,
|
||||
struct pipe_resource *restrict indexbuf, unsigned index_size,
|
||||
unsigned index_offset, unsigned instance_count)
|
||||
{
|
||||
struct radeon_cmdbuf *cs = &sctx->gfx_cs;
|
||||
|
|
@ -2049,12 +2049,12 @@ template <amd_gfx_level GFX_VERSION, si_has_tess HAS_TESS, si_has_gs HAS_GS, si_
|
|||
si_is_draw_vertex_state IS_DRAW_VERTEX_STATE, si_has_sh_pairs_packed HAS_SH_PAIRS_PACKED,
|
||||
util_popcnt POPCNT, si_alt_hiz_logic ALT_HIZ_LOGIC> ALWAYS_INLINE
|
||||
static void si_draw(struct pipe_context *ctx,
|
||||
const struct pipe_draw_info *info,
|
||||
const struct pipe_draw_info *restrict info,
|
||||
unsigned drawid_offset,
|
||||
const struct pipe_draw_indirect_info *indirect,
|
||||
const struct pipe_draw_start_count_bias *draws,
|
||||
const struct pipe_draw_indirect_info *restrict indirect,
|
||||
const struct pipe_draw_start_count_bias *restrict draws,
|
||||
unsigned num_draws,
|
||||
struct pipe_vertex_state *state,
|
||||
struct pipe_vertex_state *restrict state,
|
||||
uint32_t partial_velem_mask)
|
||||
{
|
||||
/* Keep code that uses the least number of local variables as close to the beginning
|
||||
|
|
@ -2437,10 +2437,10 @@ static void si_draw(struct pipe_context *ctx,
|
|||
template <amd_gfx_level GFX_VERSION, si_has_tess HAS_TESS, si_has_gs HAS_GS, si_has_ngg NGG,
|
||||
si_has_sh_pairs_packed HAS_SH_PAIRS_PACKED, si_alt_hiz_logic ALT_HIZ_LOGIC>
|
||||
static void si_draw_vbo(struct pipe_context *ctx,
|
||||
const struct pipe_draw_info *info,
|
||||
const struct pipe_draw_info *restrict info,
|
||||
unsigned drawid_offset,
|
||||
const struct pipe_draw_indirect_info *indirect,
|
||||
const struct pipe_draw_start_count_bias *draws,
|
||||
const struct pipe_draw_indirect_info *restrict indirect,
|
||||
const struct pipe_draw_start_count_bias *restrict draws,
|
||||
unsigned num_draws)
|
||||
{
|
||||
si_draw<GFX_VERSION, HAS_TESS, HAS_GS, NGG, DRAW_VERTEX_STATE_OFF, HAS_SH_PAIRS_PACKED,
|
||||
|
|
@ -2455,7 +2455,7 @@ static void si_draw_vertex_state(struct pipe_context *ctx,
|
|||
struct pipe_vertex_state *vstate,
|
||||
uint32_t partial_velem_mask,
|
||||
struct pipe_draw_vertex_state_info info,
|
||||
const struct pipe_draw_start_count_bias *draws,
|
||||
const struct pipe_draw_start_count_bias *restrict draws,
|
||||
unsigned num_draws)
|
||||
{
|
||||
struct si_vertex_state *state = (struct si_vertex_state *)vstate;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue