i965: Make the constant surface interface take a normal byte size.
[mesa.git] / src / mesa / drivers / dri / intel / intel_tex_format.c
1 #include "intel_context.h"
2 #include "intel_tex.h"
3 #include "main/enums.h"
4 #include "main/formats.h"
5
6 int intel_compressed_num_bytes(GLuint mesaFormat)
7 {
8 GLuint bw, bh;
9 GLuint block_size;
10
11 block_size = _mesa_get_format_bytes(mesaFormat);
12 _mesa_get_format_block_size(mesaFormat, &bw, &bh);
13
14 return block_size / bw;
15 }