mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
anv: Add a helper to determine sampling with HiZ
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
bcf880a9c8
commit
3ac01ad2ac
1 changed files with 7 additions and 0 deletions
|
|
@ -1609,6 +1609,13 @@ struct anv_image {
|
|||
struct anv_surface aux_surface;
|
||||
};
|
||||
|
||||
/* Returns true if a HiZ-enabled depth buffer can be sampled from. */
|
||||
static inline bool
|
||||
anv_can_sample_with_hiz(uint8_t gen, uint32_t samples)
|
||||
{
|
||||
return gen >= 8 && samples == 1;
|
||||
}
|
||||
|
||||
void
|
||||
anv_gen8_hiz_op_resolve(struct anv_cmd_buffer *cmd_buffer,
|
||||
const struct anv_image *image,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue