diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-20 16:41:39 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-24 12:57:40 -0700 |
commit | bd2fc60a8a3355def129cde8587f3c9ff90162cf (patch) | |
tree | 5aa1ee3c8d2e01dc28fd5345ea76c8f8ba25750e /src/gallium/drivers/panfrost/include/panfrost-job.h | |
parent | 856e03902b4210702f884a6e00154ee8d8658854 (diff) |
panfrost: Identify "uniform buffer count" bits
We've known about this for a while, but it was never formally in the
machine header files / decoder, so let's add them in.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/include/panfrost-job.h')
-rw-r--r-- | src/gallium/drivers/panfrost/include/panfrost-job.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/gallium/drivers/panfrost/include/panfrost-job.h b/src/gallium/drivers/panfrost/include/panfrost-job.h index 6da86148cd7..fbef4efdc32 100644 --- a/src/gallium/drivers/panfrost/include/panfrost-job.h +++ b/src/gallium/drivers/panfrost/include/panfrost-job.h @@ -399,7 +399,7 @@ enum mali_format { #define MALI_ALPHA_COVERAGE(clampf) ((uint16_t) (int) (clampf * 15.0f)) #define MALI_GET_ALPHA_COVERAGE(nibble) ((float) nibble / 15.0f) -/* Applies to unknown1 */ +/* Applies to midgard1.flags */ /* Should the hardware perform early-Z testing? Normally should be set * for performance reasons. Clear if you use: discard, @@ -407,19 +407,19 @@ enum mali_format { * forward-pixel kill; we're not quite sure which bit is which yet. * TODO: How does this interact with blending?*/ -#define MALI_EARLY_Z (1 << 10) +#define MALI_EARLY_Z (1 << 6) /* Should the hardware calculate derivatives (via helper invocations)? Set in a * fragment shader that uses texturing or derivative functions */ -#define MALI_HELPER_INVOCATIONS (1 << 11) +#define MALI_HELPER_INVOCATIONS (1 << 7) /* Flags denoting the fragment shader's use of tilebuffer readback. If the * shader might read any part of the tilebuffer, set MALI_READS_TILEBUFFER. If * it might read depth/stencil in particular, also set MALI_READS_ZS */ -#define MALI_READS_ZS (1 << 12) -#define MALI_READS_TILEBUFFER (1 << 16) +#define MALI_READS_ZS (1 << 8) +#define MALI_READS_TILEBUFFER (1 << 12) /* The raw Midgard blend payload can either be an equation or a shader * address, depending on the context */ @@ -538,9 +538,8 @@ struct mali_shader_meta { u32 unk1 : 28; // = 0x800000 for vertex, 0x958020 for tiler } bifrost1; struct { - /* 0x200 except MALI_NO_ALPHA_TO_COVERAGE. Mysterious 1 - * other times. Who knows really? */ - u16 unknown1; + unsigned uniform_buffer_count : 4; + unsigned flags : 12; /* Whole number of uniform registers used, times two; * whole number of work registers used (no scale). |