r600: update vertex emit_varying_pos
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

This change adds a minimal support for gl_PointSize to
be used alongside gl_ClipDistance/gl_CullDistance.

This change was tested on palm and cayman. Here is the test fixed:
khr-gl4[5-6]/gl_spirv/spirv_validation_builtin_variable_decorations_test: fail pass

Cc: mesa-stable
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40701>
This commit is contained in:
Patrick Lerda 2026-03-30 12:43:08 +02:00 committed by Marge Bot
parent 84c3489e38
commit 032a2bdc1e

View file

@ -231,7 +231,7 @@ VertexExportForFs::emit_varying_pos(const store_loc& store_info,
<< (4 * (store_info.location - VARYING_SLOT_CLIP_DIST0));
m_clip_dist_write |= write_mask
<< (4 * (store_info.location - VARYING_SLOT_CLIP_DIST0));
export_slot = m_cur_clip_pos++;
export_slot = m_cur_clip_pos++ + (m_out_point_size ? 1 : 0);
break;
default:
sfn_log << SfnLog::err << __func__ << "Unsupported location " << store_info.location