[Mesa-dev] [PATCH 3/4] gallium: add GREMEDY_string_marker

Rob Clark robdclark at gmail.com
Sun Dec 13 10:19:06 PST 2015


On Tue, Dec 8, 2015 at 6:57 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 7 December 2015 at 18:55, Rob Clark <robdclark at gmail.com> wrote:
>> On Mon, Dec 7, 2015 at 1:42 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> On 7 December 2015 at 16:45, Rob Clark <robdclark at gmail.com> wrote:
>>>> From: Rob Clark <robclark at freedesktop.org>
>>>>
>>>> Only exposed w/ ST_DEBUG=gremedy.
>>>>
>>> Perhaps a bit of a silly question - why expose the extension only for
>>> debug mesa builds ? Afaict there isn't any noticeable performance
>>> implication (from infrastructural POV) is there ?
>>>
>>> If driver X performance goes down the drain, just have them
>>> conditionally return 0/1 for PIPE_CAP_STRING_MARKER ?
>>
>> It was suggested, iirc by Ian, on the basis that apps might do
>> something non-performant if they see the extension (since the original
>> use-case was that the extension is injected by the gremedy debugger).
>>
> Hmm fair enough. Can you add some/most of that in the commit message, please ?

Perhaps something like:

Since the GREMEDY extensions are normally only exposed by the gremedy
debugger (and could possibly trigger debug paths in the app), we don't
expose the extension by default, but instead only with
ST_DEBUG=gremedy.

?

I wouldn't mind at least getting this one patch pushed in the near
future (since it conflicts all over the place every time someone adds
a new pipe-cap ;-))

BR,
-R

> Thanks
> Emil


More information about the mesa-dev mailing list