diff options
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2019-12-04 08:59:29 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2019-12-06 14:37:17 +0000 |
commit | 9eae950342fe96c717c740f0827a572cd41d85fc (patch) | |
tree | 9e83aaab25c27d87774e77056d8cd8a75c16e6f6 /src/gallium/drivers/panfrost/pan_scoreboard.c | |
parent | c1a362722f47c35da68754181797cd8f2487b1ea (diff) |
panfrost: Update SET_VALUE with information from igt
It's not a tiler specific initialization; it's a generic GPU-side write
primitive that may be used for tiler reset on midgard.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_scoreboard.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_scoreboard.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/panfrost/pan_scoreboard.c b/src/gallium/drivers/panfrost/pan_scoreboard.c index 02dd7f0b669..f09e1e6b04a 100644 --- a/src/gallium/drivers/panfrost/pan_scoreboard.c +++ b/src/gallium/drivers/panfrost/pan_scoreboard.c @@ -30,7 +30,7 @@ /* * Within a batch (panfrost_job), there are various types of Mali jobs: * - * - SET_VALUE: initializes tiler + * - SET_VALUE: generic write primitive, used to zero tiler field * - VERTEX: runs a vertex shader * - TILER: runs tiling and sets up a fragment shader * - FRAGMENT: runs fragment shaders and writes out @@ -278,8 +278,9 @@ panfrost_set_value_job(struct panfrost_batch *batch, mali_ptr polygon_list) }; struct mali_payload_set_value payload = { - .out = polygon_list, - .unknown = 0x3, + .address = polygon_list, + .value_descriptor = MALI_SET_VALUE_ZERO, + .immediate = 0 }; struct panfrost_transfer transfer = panfrost_allocate_transient(batch, sizeof(job) + sizeof(payload)); |