render.h:393:7: error: multiple conversions from switch condition type 'SamplerAlphaFunction'
macOS build error
In file included from tests/llvmpipe/tests/test.cpp:25:
tests/llvmpipe/tests/render.h:393:7: error: multiple conversions from switch condition type 'SamplerAlphaFunction' (aka 'Sampler<glEnum<512, glEnum<513, glEnum<514, glEnum<515, glEnum<516, glEnum<517, glEnum<518, glEnum<519> > > > > > > > >') to an integral or enumeration type
switch(mAlphaState->function){
^ ~~~~~~~~~~~~~~~~~~~~~
tests/llvmpipe/tests/../utils/sampler.h:280:4: note: conversion to integral type 'GLenum' (aka 'unsigned int')
operator GLenum()
^
tests/llvmpipe/tests/../utils/sampler.h:285:4: note: conversion to integral type 'GLenum' (aka 'unsigned int')
operator GLenum() const
^
1 error generated.
Author: James Benton <bentonj@vmware.com>
Date: Wed May 12 11:08:42 2021 +0100
llvmpipe: Add tests designed to exercise llvmpipe linear rasterizer.
See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10765
v2: Fix out-of-source builds. Remove unused variable. Define NOGDI to
avoid Polygon symbol clash. Fix build when Git is not found.
-- Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/529>
cc: @sroland @jrfonseca