i915: Protect macro argument for TEXTURE_SET()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 30 Jun 2014 15:42:31 +0000 (18:42 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Nov 2014 17:13:27 +0000 (19:13 +0200)
commit4747b2638c785337fccec2f17ef77fc870e68c2e
tree1360576278fdbcc26305bc066c40e2f651141bb6
parent3746ff89bc5c0b84119e8aff3afab39842fbb40e
i915: Protect macro argument for TEXTURE_SET()

TEXTURE_SET() is the only register macro that forgets to wrap the
argument evaluation in parens. Only simple integers are passed to this
macro so there's no bug but sitll it seems prudent to add the
parens.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
src/mesa/drivers/dri/i915/i830_reg.h