asahi: Identify depth bias array

"Inspired" by PowerVR code, by comparison.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>
This commit is contained in:
Alyssa Rosenzweig 2022-04-02 15:12:51 -04:00
parent a39fb009d2
commit ff84c07b21
2 changed files with 2 additions and 4 deletions

View File

@ -576,8 +576,7 @@
<field name="Store pipeline unk" start="12:0" size="4" default="4" type="hex"/>
<field name="Store pipeline" start="12:4" size="28" type="address" modifier="shr(4)"/>
<field name="Scissor array" start="14:0" size="64" type="address"/>
<!-- Points to zeroes, allocation of 0xc0000 bytes unknwon type 28000000 -->
<field name="Unknown buffer" start="16:0" size="64" type="address"/>
<field name="Depth bias array" start="16:0" size="64" type="address"/>
<!-- 0xc0154 with depth clear and z32f and s8
0x40154 with z32f and s8
0x44 with z32f

View File

@ -176,7 +176,6 @@ demo_cmdbuf(uint64_t *buf, size_t size,
uint64_t deflake_1 = deflake_buffer + 0x2a0;
uint64_t deflake_2 = deflake_buffer + 0x20;
uint64_t unk_buffer = demo_zero(pool, 0x1000);
uint64_t unk_buffer_2 = demo_zero(pool, 0x8000);
uint64_t depth_buffer = 0;
@ -188,7 +187,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
cfg.store_pipeline_bind = 0x12;
cfg.store_pipeline = pipeline_store;
cfg.scissor_array = scissor_ptr;
cfg.unknown_buffer = unk_buffer;
cfg.depth_bias_array = demo_zero(pool, 0x1000);
if (framebuffer->zsbuf) {
struct pipe_surface *zsbuf = framebuffer->zsbuf;