[Mesa-dev] [PATCH 2/6] glsl: Add ir support for `sample` qualifier; adjust compiler and linker
Francisco Jerez
currojerez at riseup.net
Fri Dec 6 03:24:38 PST 2013
Chris Forbes <chrisf at ijw.co.nz> writes:
>[...]
> @@ -4662,6 +4673,7 @@ ast_process_structure_or_interface_block(exec_list *instructions,
> fields[i].interpolation =
> interpret_interpolation_qualifier(qual, var_mode, state, &loc);
> fields[i].centroid = qual->flags.q.centroid ? 1 : 0;
> + fields[i].sample = qual->flags.q.sample ? 1 : 0;
Hi Chris, I just realized, we should probably make sure that this
doesn't happen in a struct member declaration -- Only precision
qualifiers are allowed in them according to the GL spec.
>
> if (qual->flags.q.row_major || qual->flags.q.column_major) {
> if (!qual->flags.q.uniform) {
> @@ -4930,6 +4942,8 @@ ast_interface_block::hir(exec_list *instructions,
> earlier_per_vertex->fields.structure[j].interpolation;
> fields[i].centroid =
> earlier_per_vertex->fields.structure[j].centroid;
> + fields[i].sample =
> + earlier_per_vertex->fields.structure[j].sample;
> }
> }
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131206/d982d22e/attachment.pgp>
More information about the mesa-dev
mailing list