From adce6bd0fc9533156da09da7d029ba0d76606b4f Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 19 Jul 2006 16:21:49 -0400 Subject: Add a trailing MI_NOOP to frag shader output for alignment if necessary. --- src/i915_3d.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/i915_3d.h') 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); -- cgit v1.2.3