mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
pan/bi: Stop pretending to support f16 gl_Position
It's always a full vec4 in the varying buffer. Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Acked-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38681>
This commit is contained in:
parent
1efba676b1
commit
a094c15270
1 changed files with 2 additions and 2 deletions
|
|
@ -1115,8 +1115,8 @@ bi_emit_store_vary(bi_builder *b, nir_intrinsic_instr *instr)
|
|||
|
||||
if (b->shader->arch <= 8 && b->shader->idvs == BI_IDVS_POSITION) {
|
||||
/* Bifrost position shaders have a fast path */
|
||||
assert(T == nir_type_float16 || T == nir_type_float32);
|
||||
unsigned regfmt = (T == nir_type_float16) ? 0 : 1;
|
||||
assert(T == nir_type_float32);
|
||||
unsigned regfmt = 1;
|
||||
unsigned identity = (b->shader->arch == 6) ? 0x688 : 0;
|
||||
unsigned snap4 = 0x5E;
|
||||
uint32_t format = identity | (snap4 << 12) | (regfmt << 24);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue