diff options
author | Ben Widawsky <[email protected]> | 2014-12-22 19:29:13 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-01-20 15:24:40 -0800 |
commit | 9394f5838364e3265b8f7ee87f3265848317e955 (patch) | |
tree | acffcc6c41365c5d095c1d7f48c8720e9c89ef89 /src/glsl/standalone_scaffolding.cpp | |
parent | b368c91f261db140ebdb143c894d4921aa320655 (diff) |
i965: Add QWORD sizes to type_sz macro
GEN8 added the QWORD as a valid type for certain operations on the EU.
In order to calculate the number of registers used one must have the type
size as part of the equation. Quoting the formula in the code:
regs_written = (dst.width * dst.stride * type_sz(dst.type) + 31) / 32;
Adding this separately for bisection since there is no simple way to add
an assert in the type_sz function.
NOTE: As a side note, I was confused for a while because it's impossible
to calculate the region, ie. registers needed, without vstride. However,
at this point these are all part of the IR, and so no vstride must exist.
Signed-off-by: Ben Widawsky <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/standalone_scaffolding.cpp')
0 files changed, 0 insertions, 0 deletions