summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-12-23 01:48:09 -0800
committerEric Anholt <[email protected]>2014-01-09 15:30:11 +0800
commit66524daf175950bd7266fc3cbb4125c24984a482 (patch)
tree712a19c868a38bdc77a223aa1ba98de23448f13a /m4
parent5d2e86924ebe7b520a5964e9c90c5bb7213c67cf (diff)
i965: Use SET_FIELD to safety check our x/y offsets in blits.
The earlier assert made sure that our math didn't exceed our bounds, but this makes sure that we don't overflow from the high bits X into the low bits of Y. We've already put checks in intel_miptree_blit(), but I've wanted to expand the type in our protoype from short to uint32_t, and we could get in trouble with intel_emit_linear_blit() if we did. v2: Add Ken's comment about the funny language extension used. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (v1) Reviewed-by: Anuj Phogat <[email protected]> (v1)
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions