diff options
author | Kenneth Graunke <[email protected]> | 2013-12-13 16:10:02 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-12-20 12:41:54 -0800 |
commit | b97fa1e75b77a8f5e8b963ea792afeb02efe0419 (patch) | |
tree | d662e9cb93d4133e1d2c0c56ec61e960743b31e6 /src/mesa/drivers/dri/i965/intel_mipmap_tree.h | |
parent | 1e8e17ccd7a64fdde9b78d239d8a3c256006c984 (diff) |
i965: Store QPitch in intel_mipmap_tree.
Broadwell allows us to specify an arbitrary value for QPitch, rather
than baking a specific formula into the hardware and requiring software
to lay things out to match. The only restriction is that the software
provided QPitch needs to be large enough so successive array slices do
not overlap.
In order to support this flexibility, software needs to specify QPitch
in a bunch of packets. Storing QPitch makes that easy, and allows us to
adjust it in a single place should we wish to change it in the future.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_mipmap_tree.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h index cde702c3c4a..329eeb0fbd5 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.h +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.h @@ -334,6 +334,11 @@ struct intel_mipmap_tree bool array_spacing_lod0; /** + * The distance in rows between array slices. + */ + uint32_t qpitch; + + /** * MSAA layout used by this buffer. */ enum intel_msaa_layout msaa_layout; |