mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 18:00:24 +01:00
freedreno: Move driconf settings into sub-struct
Organize all one of them in a single place before adding more. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22224>
This commit is contained in:
parent
8620b64930
commit
77a5778836
3 changed files with 11 additions and 9 deletions
|
|
@ -194,7 +194,7 @@ compute_lrz_state(struct fd6_emit *emit) assert_dt
|
|||
* enable LRZ write. But this would cause early-z/lrz to discard
|
||||
* fragments from draw A which should be visible due to draw B.
|
||||
*/
|
||||
if (reads_dest && zsa->writes_z && ctx->screen->conservative_lrz) {
|
||||
if (reads_dest && zsa->writes_z && ctx->screen->driconf.conservative_lrz) {
|
||||
if (!zsa->perf_warn_blend && rsc->lrz_valid) {
|
||||
perf_debug_ctx(ctx, "Invalidating LRZ due to blend+depthwrite");
|
||||
zsa->perf_warn_blend = true;
|
||||
|
|
|
|||
|
|
@ -1108,7 +1108,7 @@ fd_screen_create(int fd,
|
|||
driParseConfigFiles(config->options, config->options_info, 0, "msm",
|
||||
NULL, fd_dev_name(screen->dev_id), NULL, 0, NULL, 0);
|
||||
|
||||
screen->conservative_lrz =
|
||||
screen->driconf.conservative_lrz =
|
||||
!driQueryOptionb(config->options, "disable_conservative_lrz");
|
||||
|
||||
struct sysinfo si;
|
||||
|
|
|
|||
|
|
@ -84,13 +84,15 @@ struct fd_screen {
|
|||
bool has_robustness;
|
||||
bool has_syncobj;
|
||||
|
||||
/* Conservative LRZ (default true) invalidates LRZ on draws with
|
||||
* blend and depth-write enabled, because this can lead to incorrect
|
||||
* rendering. Driconf can be used to disable conservative LRZ for
|
||||
* games which do not have the problematic sequence of draws *and*
|
||||
* suffer a performance loss with conservative LRZ.
|
||||
*/
|
||||
bool conservative_lrz;
|
||||
struct {
|
||||
/* Conservative LRZ (default true) invalidates LRZ on draws with
|
||||
* blend and depth-write enabled, because this can lead to incorrect
|
||||
* rendering. Driconf can be used to disable conservative LRZ for
|
||||
* games which do not have the problematic sequence of draws *and*
|
||||
* suffer a performance loss with conservative LRZ.
|
||||
*/
|
||||
bool conservative_lrz;
|
||||
} driconf;
|
||||
|
||||
const struct fd_dev_info *info;
|
||||
uint32_t ccu_offset_gmem;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue