On Sat, Mar 9, 2013 at 9:43 PM, Stéphane Marchesin <stephane.marche...@gmail.com> wrote: > On Sat, Mar 9, 2013 at 12:30 PM, Jose Fonseca <jfons...@vmware.com> wrote: >> Looks a sensible thing to do. >> >> Reviewed-by: Jose Fonseca <jfons...@vmware.com> >> > > Thanks for the review. > >> Any insight how the caller can be fixed so that this doesn't happen? > > It happens to me when draw stages add more samplers on top of the max > samplers from the application.
A couple of things: 1) The GLSL compiler should reject shaders which use more textures than the driver supports. 2) I think this patch won't help you with Draw. If you wanna fix Draw so that it doesn't exceed the max texture count limit, search for driver_set_sampler_views. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev