diff options
author | Jordan Justen <[email protected]> | 2014-05-28 10:44:13 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-08-15 20:11:42 -0700 |
commit | a1dca7069bd46074f43658c87d396bff8cd4dffd (patch) | |
tree | 61f043ea140e33c9a337086fa0067ddea1cb0e98 /src/mesa/program/prog_parameter_layout.c | |
parent | 31e1beec899d36904ee7b9629400a523fbc42210 (diff) |
i965/gen6: Force ALL_SLICES_AT_EACH_LOD for separate stencil/hiz
For gen6 we will use the ALL_SLICES_AT_EACH_LOD miptree layout for
separate stencil/hiz. This is needed because gen6 hiz and separate
stencil only support a single miplevel. When accessing the other LODs,
we will program a tile aligned offset for the bo.
PRM Volume 1, Part 1, 7.18.3.7.2 For separate stencil buffer [DevILK]
to [DevSNB]:
"The separate stencil buffer does not support mip mapping, thus the
storage for LODs other than LOD 0 is not needed."
We still allocate storage for the other stencil mip-levels within a
single texture, but each mip-level will use non-mip-array spacing.
PRM Volume 2, Part 1, 7.5.3 Hierarchical Depth Buffer
"[DevSNB]: The hierarchical depth buffer does not support the LOD
field, it is assumed by hardware to be zero. A separate
hierarachical depth buffer is required for each LOD used, and the
corresponding buffer’s state delivered to hardware each time a new
depth buffer state with modified LOD is delivered."
We allocate storage for the other hiz mip-levels within a single
texture, but each mip-level will use non-mip-array spacing.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_parameter_layout.c')
0 files changed, 0 insertions, 0 deletions