diff options
author | Kenneth Graunke <[email protected]> | 2018-12-02 14:39:29 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:10 -0800 |
commit | 72cf2185c84361c1c9acb0e714b9aa963727c88c (patch) | |
tree | a6a1168b2621e4565ace36bc36090d7963e283f1 /src/gallium/drivers | |
parent | 1114f0c1cecc70925c3933ff360e3bcbe994ae9d (diff) |
iris: make clipper statistics dynamic
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/iris/iris_state.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index d5cd6ae8201..d29cc8b9229 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -1150,7 +1150,6 @@ iris_create_rasterizer_state(struct pipe_context *ctx, /* cl.NonPerspectiveBarycentricEnable is filled in at draw time from * the FS program; cl.ForceZeroRTAIndexEnable is filled in from the FB. */ - cl.StatisticsEnable = true; cl.EarlyCullEnable = true; cl.UserClipDistanceClipTestEnableBitmask = state->clip_plane_enable; cl.ForceUserClipDistanceClipTestEnableBitmask = true; @@ -4237,6 +4236,8 @@ iris_upload_dirty_render_state(struct iris_context *ice, uint32_t dynamic_clip[GENX(3DSTATE_CLIP_length)]; iris_pack_command(GENX(3DSTATE_CLIP), &dynamic_clip, cl) { + cl.StatisticsEnable = ice->state.statistics_counters_enabled; + if (wm_prog_data->barycentric_interp_modes & BRW_BARYCENTRIC_NONPERSPECTIVE_BITS) cl.NonPerspectiveBarycentricEnable = true; |