OSDN Git Service

ARB prog: Change handling of program parameter limits
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 24 Aug 2009 19:54:48 +0000 (12:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 27 Aug 2009 05:05:53 +0000 (22:05 -0700)
commiteabe12df44a41e97fb5736959e8864ddbd01be14
tree754fd01ac75f14f07322d8a9061d0ecc8a33e759
parent20d9204fbd71aebf870834b612579419d2c278b5
ARB prog: Change handling of program parameter limits

Several changes are made to program parameter limits.  Several of the
non-NATIVE limits are set higher.  All of the NATIVE limits are set to
zero in the core Mesa code.  Each driver must set the actual value in
its context creation routine.  If the NATIVE value remains zero, this
indicates that hardware shaders may not be supported.

Each of the preceeding changes matches the bahavior of Apple's shader
assembler, so it seems safe.

Finally, we limit the value of MaxEnvParams to be no greater than
MaxNativeAttribs.  At least one case has been found where an
application does the wrong thing if MaxNativeAttribs < MaxEnvParams.

See also bugzilla #23490.
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/main/config.h
src/mesa/main/context.c