[Mesa-dev] [PATCH 2/6] st/mesa: add texture buffer object support to state tracker

Dave Airlie airlied at gmail.com
Thu Dec 6 17:15:49 PST 2012


>> +      } else {
>> +         const struct st_texture_image *firstImage =
>> +
>> st_texture_image(stObj->base.Image[0][stObj->base.BaseLevel]);
>> +         texFormat = firstImage->base.TexFormat;
>> +      }
>> +      firstImageFormat = st_mesa_format_to_pipe_format(texFormat);
>
>
> I haven't double-checked, but I thought we had a utility function for
> getting a texture's format using code like that.

I can't find one,, not sure I've seen this pattern anywhere else, at
least a grep for BufferObjectFormat doesn't hit it.

removed the blank line as well.

Thanks,
Dave.


More information about the mesa-dev mailing list