[Mesa-dev] [PATCH 01/17] mesa: consolidate definitions of max texture image units

Eric Anholt eric at anholt.net
Thu May 2 10:12:56 PDT 2013


Marek Olšák <maraeo at gmail.com> writes:

> Shaders are unified on most hardware (= same limits in all stages).
> No idea what the assertion was good for.
> ---
>  src/mesa/main/config.h                 |    6 ++----
>  src/mesa/main/context.c                |    6 ++----
>  src/mesa/state_tracker/st_extensions.c |    2 +-
>  3 files changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
> index 33b5ab0..76863bf 100644
> --- a/src/mesa/main/config.h
> +++ b/src/mesa/main/config.h

> -   assert(MAX_COMBINED_TEXTURE_IMAGE_UNITS <= 8 * sizeof(GLbitfield));
> -

I think this assert is asserting that _EnabledUnits of gl_texture_attrib
can fit the size of the Unit[] array, which seems important.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130502/49b817b3/attachment.pgp>


More information about the mesa-dev mailing list