mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 23:30:30 +01:00
swr: support layer output in geometry shaders
This makes bin/gl-3.2-layered-rendering-gl-layer-render fail only with 2DMS_ARRAY, which is expected given the lackluster MSAA support. However all the regular types pass. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
ad4dee521d
commit
e893b3a367
1 changed files with 2 additions and 0 deletions
|
|
@ -391,6 +391,8 @@ BuilderSWR::swr_gs_llvm_emit_vertex(const struct lp_build_tgsi_gs_iface *gs_base
|
|||
attribSlot = VERTEX_POINT_SIZE_SLOT;
|
||||
else if (iface->info->output_semantic_name[attrib] == TGSI_SEMANTIC_PRIMID)
|
||||
attribSlot = VERTEX_PRIMID_SLOT;
|
||||
else if (iface->info->output_semantic_name[attrib] == TGSI_SEMANTIC_LAYER)
|
||||
attribSlot = VERTEX_RTAI_SLOT;
|
||||
|
||||
Value *vOffsetsAttrib =
|
||||
ADD(vOffsets, MUL(vVertexSlot, VIMMED1((uint32_t)sizeof(simdvertex))));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue