mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
i965: Assert that a depth_mt exists when using HiZ.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
4a5e92ac70
commit
83c6749ddb
4 changed files with 4 additions and 0 deletions
|
|
@ -646,6 +646,7 @@ brw_emit_depth_stencil_hiz(struct brw_context *brw,
|
|||
|
||||
/* Emit hiz buffer. */
|
||||
if (hiz) {
|
||||
assert(depth_mt);
|
||||
struct intel_mipmap_tree *hiz_mt = depth_mt->hiz_buf->mt;
|
||||
BEGIN_BATCH(3);
|
||||
OUT_BATCH((_3DSTATE_HIER_DEPTH_BUFFER << 16) | (3 - 2));
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ gen6_emit_depth_stencil_hiz(struct brw_context *brw,
|
|||
|
||||
/* Emit hiz buffer. */
|
||||
if (hiz) {
|
||||
assert(depth_mt);
|
||||
struct intel_mipmap_tree *hiz_mt = depth_mt->hiz_buf->mt;
|
||||
uint32_t offset = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ gen7_emit_depth_stencil_hiz(struct brw_context *brw,
|
|||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
} else {
|
||||
assert(depth_mt);
|
||||
struct intel_miptree_aux_buffer *hiz_buf = depth_mt->hiz_buf;
|
||||
|
||||
BEGIN_BATCH(3);
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ emit_depth_packets(struct brw_context *brw,
|
|||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
} else {
|
||||
assert(depth_mt);
|
||||
BEGIN_BATCH(5);
|
||||
OUT_BATCH(GEN7_3DSTATE_HIER_DEPTH_BUFFER << 16 | (5 - 2));
|
||||
OUT_BATCH((depth_mt->hiz_buf->pitch - 1) | mocs_wb << 25);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue