mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nvk: Add a _pad field to nvk_fs_key
Fixes: ae17145882 ("nak: Rewrite nir_intrinsic_load_sample_pos...")
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28615>
This commit is contained in:
parent
0cb852050d
commit
987cbaee2a
1 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ nak_nir_options(const struct nak_compiler *nak);
|
||||||
void nak_optimize_nir(nir_shader *nir, const struct nak_compiler *nak);
|
void nak_optimize_nir(nir_shader *nir, const struct nak_compiler *nak);
|
||||||
void nak_preprocess_nir(nir_shader *nir, const struct nak_compiler *nak);
|
void nak_preprocess_nir(nir_shader *nir, const struct nak_compiler *nak);
|
||||||
|
|
||||||
|
PRAGMA_DIAGNOSTIC_PUSH
|
||||||
|
PRAGMA_DIAGNOSTIC_ERROR(-Wpadded)
|
||||||
struct nak_fs_key {
|
struct nak_fs_key {
|
||||||
bool zs_self_dep;
|
bool zs_self_dep;
|
||||||
|
|
||||||
|
|
@ -40,6 +42,8 @@ struct nak_fs_key {
|
||||||
*/
|
*/
|
||||||
bool force_sample_shading;
|
bool force_sample_shading;
|
||||||
|
|
||||||
|
uint8_t _pad;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constant buffer index and offset at which the sample locations table lives.
|
* The constant buffer index and offset at which the sample locations table lives.
|
||||||
* Each sample location is two 4-bit unorm values packed into an 8-bit value
|
* Each sample location is two 4-bit unorm values packed into an 8-bit value
|
||||||
|
|
@ -48,6 +52,9 @@ struct nak_fs_key {
|
||||||
uint8_t sample_locations_cb;
|
uint8_t sample_locations_cb;
|
||||||
uint32_t sample_locations_offset;
|
uint32_t sample_locations_offset;
|
||||||
};
|
};
|
||||||
|
PRAGMA_DIAGNOSTIC_POP
|
||||||
|
static_assert(sizeof(struct nak_fs_key) == 8, "This struct has no holes");
|
||||||
|
|
||||||
|
|
||||||
void nak_postprocess_nir(nir_shader *nir, const struct nak_compiler *nak,
|
void nak_postprocess_nir(nir_shader *nir, const struct nak_compiler *nak,
|
||||||
nir_variable_mode robust2_modes,
|
nir_variable_mode robust2_modes,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue