i965: Set the maximum VPIndex
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Jan 2014 21:43:24 +0000 (13:43 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 20 Jan 2014 19:32:01 +0000 (11:32 -0800)
commit37f65b07512c0291580811689f65bfcbcc489231
treede3d1fc1f2b94733eb0d63fd524e0a3fe732cc19
parent9ef16befd0068544287c5f327a77fe8af6aee329
i965: Set the maximum VPIndex

At various stages the hardware clamps the gl_ViewportIndex to these
values.  Setting them to zero effectively makes gl_ViewportIndex be
ignored.  This is acutally useful in blorp (so that we don't have to
modify all of the viewport / scissor state).

v2: Use INTEL_MASK to create GEN6_CLIP_MAX_VP_INDEX_MASK.  Suggested by
Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_gs_state.c
src/mesa/drivers/dri/i965/gen6_clip_state.c