i965: Make a set_scissor_bits helper function.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 May 2017 06:53:05 +0000 (23:53 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 30 May 2017 04:46:43 +0000 (21:46 -0700)
commit01cb6cd47303e618d22a3d00fbbad5a144064a6b
tree81659cccab50c889a40c5de23d8783c4b1617f95
parent55862ed4775b24099a5f3b1978be7a552e71c439
i965: Make a set_scissor_bits helper function.

Gen4-5 include a single SCISSOR_RECT in SF_VIEWPORT.

Making a helper function will allow us to reuse this code for Gen4-5.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/genX_state_upload.c