diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-07-19 16:21:49 -0400 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-07-19 16:21:49 -0400 |
commit | adce6bd0fc9533156da09da7d029ba0d76606b4f (patch) | |
tree | 2bed2d55b1694567409ec6f8a8b69d18e85e2178 /src/i915_3d.h | |
parent | 4e409ea44180f7ef2780d70c9d2f54629bbd0fc3 (diff) |
Add a trailing MI_NOOP to frag shader output for alignment if necessary.
Diffstat (limited to 'src/i915_3d.h')
-rw-r--r-- | src/i915_3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i915_3d.h b/src/i915_3d.h index f254c86c..e9b01944 100644 --- a/src/i915_3d.h +++ b/src/i915_3d.h @@ -434,5 +434,7 @@ do { \ (_cur_shader_commands * 3 - 1)); \ for (_i = 0; _i < _cur_shader_commands * 3; _i++) \ OUT_RING(_shader_buf[_i]); \ + if ((_cur_shader_commands & 0x1) == 0) \ + OUT_RING(MI_NOOP); \ ADVANCE_LP_RING(); \ } while (0); |