[Mesa-dev] [PATCH 1/2] i965: Don't enable SOL statistics during meta operations.
Kenneth Graunke
kenneth at whitecape.org
Tue Jul 1 17:25:32 PDT 2014
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;
--
2.0.0
More information about the mesa-dev
mailing list