[Mesa-dev] [PATCH] i965: Add support for GL_SKIP_DECODE_EXT on other SRGB formats.
Eric Anholt
eric at anholt.net
Tue Jul 31 11:02:53 PDT 2012
Brian Paul <brianp at vmware.com> writes:
> On 07/31/2012 09:30 AM, Eric Anholt wrote:
>> Kenneth Graunke<kenneth at whitecape.org> writes:
>>
>>> On 07/30/2012 03:28 PM, Brian Paul wrote:
>>>> On 07/30/2012 02:13 PM, Eric Anholt wrote:
>>>>> Fixes some failures in getteximage-formats.
>>>>> ---
>>>>> src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 14 ++++++--------
>>>>> 1 file changed, 6 insertions(+), 8 deletions(-)
>>>>>
>>>>> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
>>>>> b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
>>>>> index 65ca2fc..9e7fcf1 100644
>>>>> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
>>>>> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
>>>>> @@ -31,6 +31,7 @@
>>>>>
>>>>>
>>>>> #include "main/mtypes.h"
>>>>> +#include "main/enums.h"
>>>>
>>>> I don't see why the new code below needs enums.h
>>>
>>> Oh...yeah. That was for _mesa_lookup_enum_by_name() during some
>>> debugging. Probably should get taken back out. Good eye :)
>>
>> Yeah, I *really* wish that _mesa_lookup_enum_by_nr wasn't hidden in
>> enums.h. Also that it had a guessable name that I didn't have to look
>> up each time I'm trying to type it.
>
> Yeah, feel free to rename it. I'd go with something like
> _mesa_enum_string().
How about _mesa_get_enum_name()? I also end up typing
_mesa_get_format_name() all the time while debugging (and leaving that
header include scattered around .c files), so matching those two up
would be nice. Also it's pretty close to piglit_get_gl_enum_name(),
which we type a lot too.
-------------- 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/20120731/80015d07/attachment.pgp>
More information about the mesa-dev
mailing list