[Mesa-dev] [PATCH 05/16] gallium/draw: support hack to disable clipping
Michel Dänzer
michel at daenzer.net
Sun Oct 19 19:26:22 PDT 2014
On 18.10.2014 20:54, David Heidelberger wrote:
> From: Christoph Bumiller <christoph.bumiller at speed.at>
>
> Signed-off-by: David Heidelberger <david.heidelberger at ixit.cz>
> ---
> src/gallium/auxiliary/draw/draw_cliptest_tmp.h | 2 +-
> src/gallium/auxiliary/draw/draw_context.c | 5 +++++
> 2 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/auxiliary/draw/draw_cliptest_tmp.h b/src/gallium/auxiliary/draw/draw_cliptest_tmp.h
> index 779b237..119c677 100644
> --- a/src/gallium/auxiliary/draw/draw_cliptest_tmp.h
> +++ b/src/gallium/auxiliary/draw/draw_cliptest_tmp.h
> @@ -171,7 +171,7 @@ static boolean TAG(do_cliptest)( struct pt_post_vs *pvs,
> position[2] = position[2] * w * scale[2] + trans[2];
> position[3] = w;
> }
> -#ifdef DEBUG
> +#if 0 /* def DEBUG - WTF ? */
> /* For debug builds, set the clipped vertex's window coordinate
> * to NaN to help catch potential errors later.
> */
Maybe this hunk should be dropped? I don't think it should stay in this
form, anyway.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list