Mesa (master): i965/vs: Fix implied_mrf_writes() for integer division pre-gen6.
Eric Anholt
anholt at kemper.freedesktop.org
Wed May 29 18:03:16 UTC 2013
Module: Mesa
Branch: master
Commit: 6220cc931f15ddb428ea481e8b9a70ce26ca3304
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6220cc931f15ddb428ea481e8b9a70ce26ca3304
Author: Eric Anholt <eric at anholt.net>
Date: Tue May 28 14:35:19 2013 -0700
i965/vs: Fix implied_mrf_writes() for integer division pre-gen6.
Previously it would assertion fail in debug builds (though the correct
value was returned in a non-debug build). Marking it as a candidate for
stable even though it has no current consumers in the stable branches, in
case one shows up in a later backport.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64727
NOTE: This is a candidate for stable branches.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_vec4.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index c5aa338..4295e6e 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -247,6 +247,8 @@ vec4_visitor::implied_mrf_writes(vec4_instruction *inst)
case SHADER_OPCODE_SIN:
case SHADER_OPCODE_COS:
return 1;
+ case SHADER_OPCODE_INT_QUOTIENT:
+ case SHADER_OPCODE_INT_REMAINDER:
case SHADER_OPCODE_POW:
return 2;
case VS_OPCODE_URB_WRITE:
More information about the mesa-commit
mailing list