summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-09-13 17:46:47 -0700
committerKenneth Graunke <[email protected]>2013-09-19 10:52:58 -0700
commite114cbff966b8cee77b6d9e2ecf99c35116ae1ae (patch)
tree00dd4670409d7ae0e6f770e8b321d4d0a0d2e3ff /SConstruct
parent35a54ad02f977a11b119d1ed13a3ce4d78a1599b (diff)
i965: Refactor Gen7+ SURFACE_STATE setup for buffer surfaces.
This was an embarassingly large amount of copy and pasted code, and it wasn't particularly simple code either. By factoring it out into a helper function, we consolidate the complexity. v2: Properly NULL-check bo. Caught by Eric Anholt. v3: Do the subtraction by 1 in gen7_emit_buffer_surface_state, rather than making callers do it. This makes the buffer_size parameter the actual size of the buffer. Suggested by Paul Berry. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'SConstruct')
0 files changed, 0 insertions, 0 deletions