mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
radv: add tcs_out_patch_fits_subgroup to radv_tcs_epilog_key
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24643>
This commit is contained in:
parent
65191bb351
commit
131c3aa3dc
2 changed files with 3 additions and 0 deletions
|
|
@ -4319,6 +4319,7 @@ radv_cmp_tcs_epilog(const void *a_, const void *b_)
|
|||
static struct radv_shader_part *
|
||||
lookup_tcs_epilog(struct radv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
const struct radv_shader *tcs = cmd_buffer->state.shaders[MESA_SHADER_TESS_CTRL];
|
||||
const struct radv_shader *tes = cmd_buffer->state.shaders[MESA_SHADER_TESS_EVAL];
|
||||
struct radv_device *device = cmd_buffer->device;
|
||||
struct radv_shader_part *epilog = NULL;
|
||||
|
|
@ -4326,6 +4327,7 @@ lookup_tcs_epilog(struct radv_cmd_buffer *cmd_buffer)
|
|||
struct radv_tcs_epilog_key key = {
|
||||
.primitive_mode = tes->info.tes._primitive_mode,
|
||||
.tes_reads_tessfactors = tes->info.tes.reads_tess_factors,
|
||||
.tcs_out_patch_fits_subgroup = tcs->info.wave_size % tcs->info.tcs.tcs_vertices_out == 0,
|
||||
};
|
||||
|
||||
uint32_t hash = radv_hash_tcs_epilog(&key);
|
||||
|
|
|
|||
|
|
@ -487,6 +487,7 @@ struct radv_vs_prolog_key {
|
|||
struct radv_tcs_epilog_key {
|
||||
enum tess_primitive_mode primitive_mode;
|
||||
bool tes_reads_tessfactors;
|
||||
bool tcs_out_patch_fits_subgroup;
|
||||
};
|
||||
|
||||
enum radv_shader_binary_type { RADV_BINARY_TYPE_LEGACY, RADV_BINARY_TYPE_RTLD };
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue