[Mesa-dev] gallium & texture rectangles
keith.whitwell at gmail.com
Wed Aug 18 15:58:39 PDT 2010
On Wed, Aug 18, 2010 at 7:03 PM, Luca Barbieri <luca at luca-barbieri.com> wrote:
>> Couple of minor comments:
>> - You've documented FLEXIBLE_SAMPLING in the main part of the docs, I
>> think I'd prefer to keep forward-looking/todo items separate from the
>> documentation of the interface as it currently stands. Can these
>> paragraphs go in a new section?
> The reason is that currently several drivers already implicitly support this.
> I think the most sensible route would be to just say that drivers can
> in practice not have (some of?) those restrictions and that OpenCL
> will probably require drivers to have none of them, since adding the
> restrictions to the drivers just to remove them later seems silly.
Yes, gallium isn't that kind of interface to start with. Drivers
aren't required to have any particular behaviour in response to state
tracker requests which exceed the defined bounds of the interface --
those would be considered state tracker bugs.
So generally the drivers shouldn't be worrying about validating state
tracker requests nor restricting themselves to only servicing legal
requests. We can beef up galahad to do that for debugging purposes,
and in release builds the assumption is that the state tracker
performs any necessary API validation (potentially none, depending on
More information about the mesa-dev