diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-07-30 17:27:03 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-07-31 10:56:11 -0700 |
commit | a692126c935d6f7e2d0ae75190b5cd99bd5ff553 (patch) | |
tree | 2319391748318522af2c63a7545468e38b38e8dc /src/panfrost/include/panfrost-job.h | |
parent | c47af8b95f26bd83efe322ff0baa52263fb8625e (diff) |
panfrost: Add MALI_ATTR_IMAGE value
Images are implemented (in part) as special attributes, so include
support for decoding this.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/include/panfrost-job.h')
-rw-r--r-- | src/panfrost/include/panfrost-job.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/panfrost/include/panfrost-job.h b/src/panfrost/include/panfrost-job.h index b7312a60720..1f9fbafbe08 100644 --- a/src/panfrost/include/panfrost-job.h +++ b/src/panfrost/include/panfrost-job.h @@ -783,6 +783,11 @@ struct mali_payload_set_value { * 3. If e <= 2^shift, then we need to use the round-down algorithm. Set * magic_divisor = m - 1 and extra_flags = 1. * 4. Otherwise, set magic_divisor = m and extra_flags = 0. + * + * Unrelated to instancing/actual attributes, images (the OpenCL kind) are + * implemented as special attributes, denoted by MALI_ATTR_IMAGE. For images, + * let shift=extra_flags=0. Stride is set to the image format's bytes-per-pixel + * (*NOT the row stride*). Size is set to the size of the image itself. */ enum mali_attr_mode { @@ -791,6 +796,7 @@ enum mali_attr_mode { MALI_ATTR_POT_DIVIDE = 2, MALI_ATTR_MODULO = 3, MALI_ATTR_NPOT_DIVIDE = 4, + MALI_ATTR_IMAGE = 5 }; /* This magic "pseudo-address" is used as `elements` to implement |