summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/bufferobj.h
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2014-08-06 16:52:14 +0100
committerNeil Roberts <[email protected]>2014-08-12 18:23:38 +0100
commitcc9c30b8a746691316ae7757b68cea1b1cd3ea84 (patch)
tree7195c7fc5af7de4322ab0bef384d4ed21c3b7904 /src/mesa/main/bufferobj.h
parent84218b598f429bcc4474aa620da906b7b9aadc2b (diff)
mesa/format_info: Add support for the BPTC layout
Adds the ‘bptc’ layout to get_channel_bits. The channel bits for BPTC depend on the mode but as it only has to be an approximation this sets it to 8 for the two UNORM formats and 16 for the two half-float formats. These represent the minimum number of bits of variation that can be generated by the interpolation of the two formats. This doesn't quite match what we do for S3TC which only returns 4 even though it can similarly generate 8 bits from the interpolation. However it does match what we return for ETC2. For reference, NVidia seems to return 8 bits for the UNORM formats and 32 bits for the half-float formats. v2: Change the number of bits to 8/8/8/8 for the UNORM formats and 16/16/16 for the half-float formats. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.h')
0 files changed, 0 insertions, 0 deletions