asahi: Identify texture/sampler count fields
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 5 Jul 2021 16:09:05 +0000 (12:09 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 5 Jul 2021 20:56:04 +0000 (20:56 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11718>

src/gallium/drivers/asahi/agx_state.c

index aa7bca3..bead2b9 100644 (file)
@@ -1214,9 +1214,12 @@ agx_build_store_pipeline(struct agx_context *ctx, uint32_t code,
 static uint64_t
 demo_launch_fragment(struct agx_pool *pool, uint32_t pipeline, uint32_t varyings, unsigned input_count)
 {
+   unsigned sampler_count = 1;
+   unsigned texture_count = 1;
+
    uint32_t unk[] = {
       0x800000,
-      0x1212 | (input_count << 16), // upper nibble is input count TODO: xmlify
+      0x1002 | (texture_count << 9) | (sampler_count << 4) | (input_count << 16), // TODO: xmlify
       pipeline,
       varyings,
       0x0,