[Mesa-dev] [PATCH 1/2] i965: Don't enable SOL statistics during meta operations.
Kristian Høgsberg
krh at bitplanet.net
Wed Jul 2 21:08:04 PDT 2014
On Tue, Jul 1, 2014 at 5:25 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> The GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN counter is not supposed to
> increment during glGenerateMipmap(). I don't think either counter is
> supposed to increment during most meta operations, so simply turn off
> statistics during those.
>
> Fixes one Piglit test:
> spec/EXT_transform_feedback/generatemipmap prims_written
>
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> Cc: Iago Toral Quiroga <itoral at igalia.com>
> Cc: Chris Forbes <chrisf at ijw.co.nz>
> ---
> src/mesa/drivers/dri/i965/gen7_sol_state.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/gen7_sol_state.c b/src/mesa/drivers/dri/i965/gen7_sol_state.c
> index 558b525..eccd5a5 100644
> --- a/src/mesa/drivers/dri/i965/gen7_sol_state.c
> +++ b/src/mesa/drivers/dri/i965/gen7_sol_state.c
> @@ -240,7 +240,8 @@ upload_3dstate_streamout(struct brw_context *brw, bool active,
> * in each stream via SO_PRIMITIVE_STORAGE_NEEDED.
> */
> dw1 |= SO_FUNCTION_ENABLE;
> - dw1 |= SO_STATISTICS_ENABLE;
> + if (!brw->meta_in_progress)
> + dw1 |= SO_STATISTICS_ENABLE;
>
> if (active) {
> int urb_entry_read_offset = 0;
Do we need to add BRW_NEW_META_IN_PROGRESS to gen7_sol_state.dirty.brw?
Kristian
> --
> 2.0.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list