mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-15 13:50:29 +01:00
panfrost: Use real name for attribute's unknown field
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
parent
6b68c821d1
commit
bf3cd28319
3 changed files with 5 additions and 5 deletions
|
|
@ -1490,7 +1490,7 @@ pan_emit_vary(struct mali_attribute_packed *out,
|
|||
|
||||
pan_pack(out, ATTRIBUTE, cfg) {
|
||||
cfg.buffer_index = pan_varying_index(present, buf);
|
||||
cfg.unknown = quirks & IS_BIFROST ? 0x0 : 0x1;
|
||||
cfg.offset_enable = quirks & IS_BIFROST ? false : true;
|
||||
cfg.format = (format << 12) | swizzle;
|
||||
cfg.offset = offset;
|
||||
}
|
||||
|
|
@ -1553,7 +1553,7 @@ pan_emit_vary_xfb(struct mali_attribute_packed *out,
|
|||
pan_pack(out, ATTRIBUTE, cfg) {
|
||||
/* XFB buffers come after everything else */
|
||||
cfg.buffer_index = pan_xfb_base(present) + o.output_buffer;
|
||||
cfg.unknown = quirks & IS_BIFROST ? 0x0 : 0x1;
|
||||
cfg.offset_enable = quirks & IS_BIFROST ? false : true;
|
||||
|
||||
/* Override number of channels and precision to highp */
|
||||
cfg.format = (pan_xfb_format(format, o.num_components) << 12) | swizzle;
|
||||
|
|
|
|||
|
|
@ -138,12 +138,12 @@ bit_vertex(struct panfrost_device *dev, panfrost_program *prog,
|
|||
|
||||
pan_pack(attr->cpu, ATTRIBUTE, cfg) {
|
||||
cfg.format = (MALI_RGBA32UI << 12);
|
||||
cfg.unknown = true;
|
||||
cfg.offset_enable = true;
|
||||
}
|
||||
|
||||
pan_pack(var->cpu, ATTRIBUTE, cfg) {
|
||||
cfg.format = (MALI_RGBA32UI << 12);
|
||||
cfg.unknown = false;
|
||||
cfg.offset_enable = false;
|
||||
}
|
||||
|
||||
pan_pack(var->cpu + 256, ATTRIBUTE_BUFFER, cfg) {
|
||||
|
|
|
|||
|
|
@ -345,7 +345,7 @@
|
|||
|
||||
<struct name="Attribute">
|
||||
<field name="Buffer index" size="9" start="0" type="uint"/>
|
||||
<field name="Unknown" size="1" start="9" type="bool" default="true"/>
|
||||
<field name="Offset enable" size="1" start="9" type="bool" default="true"/>
|
||||
<field name="Format" size="22" start="10" type="uint"/>
|
||||
<field name="Offset" size="32" start="32" type="int"/>
|
||||
</struct>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue