[Nouveau] [Mesa-dev] [PATCH 10/11] nouveau/codegen: sort in galliums cull_distance semantic into the drivers bitmask
Ilia Mirkin
imirkin at alum.mit.edu
Sun May 24 12:38:25 PDT 2015
For when you resend, I tend to name things like this "nv50/ir" or
"nvc0/ir". In this case, I would have chosen "nv50/ir" since it
applies to both nvc0 and nv50. When it's a driver change, I just call
it "nv50: " or "nvc0: " (even if it might include small codegen
changes).
On Sun, May 24, 2015 at 1:58 PM, Tobias Klausmann
<tobias.johannes.klausmann at mni.thm.de> wrote:
> Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
> ---
> src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> index ecd115f..381a958 100644
> --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
> @@ -1063,6 +1063,11 @@ bool Source::scanDeclaration(const struct tgsi_full_declaration *decl)
> decl->Declaration.UsageMask << (si * 4);
> info->io.genUserClip = -1;
> break;
> + case TGSI_SEMANTIC_CULLDIST:
> + info->io.cullDistanceMask |=
> + decl->Declaration.UsageMask << (si * 4);
> + info->io.genUserClip = -1;
> + break;
> case TGSI_SEMANTIC_SAMPLEMASK:
> info->io.sampleMask = i;
> break;
> --
> 2.4.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the Nouveau
mailing list