diff options
author | Marek Olšák <[email protected]> | 2016-06-06 17:33:42 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-06-08 00:22:45 +0200 |
commit | c06246501ed9c095a3fa9f8fe2a5dadd1df55271 (patch) | |
tree | b7295a61aba04b755f8219c1157f154111b46f36 /src/gallium/drivers/radeonsi/si_state.h | |
parent | 00389100b63d03adf70892b721d1b2e8b8d5e48a (diff) |
radeonsi: don't enable DCC in the sampler if first_level doesn't have it
If first_level > 0 and DCC is disabled for that level, let's skip DCC
reads entirely.
Reviewed-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index 811a02f9a3c..a4a58bba905 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -279,8 +279,9 @@ struct si_buffer_resources { void si_ce_enable_loads(struct radeon_winsys_cs *ib); void si_set_mutable_tex_desc_fields(struct r600_texture *tex, const struct radeon_surf_level *base_level_info, - unsigned base_level, unsigned block_width, - bool is_stencil, uint32_t *state); + unsigned base_level, unsigned first_level, + unsigned block_width, bool is_stencil, + uint32_t *state); void si_set_ring_buffer(struct pipe_context *ctx, uint slot, struct pipe_resource *buffer, unsigned stride, unsigned num_records, |