aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-06-28 15:49:20 -0700
committerKenneth Graunke <[email protected]>2013-07-03 10:48:15 -0700
commitccf312fd127df16757108cc35905c1dc524a4dac (patch)
tree8bafd7b9d7e360e5404586963e184766eaee9c03 /src/mesa/drivers/dri
parented95e396f38bbad647152e9357f1da03fdc449eb (diff)
i965: Remove use of GLuint/GLint in brw_tex_layout.c.
Using GL types is silly; this isn't even remotely API-facing. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_tex_layout.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c
index e7b5046c065..00779f8db07 100644
--- a/src/mesa/drivers/dri/i965/brw_tex_layout.c
+++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c
@@ -42,12 +42,12 @@
static void
brw_miptree_layout_2d(struct intel_mipmap_tree *mt)
{
- GLuint level;
- GLuint x = 0;
- GLuint y = 0;
- GLuint width = mt->physical_width0;
- GLuint height = mt->physical_height0;
- GLuint depth = mt->physical_depth0; /* number of array layers. */
+ unsigned level;
+ unsigned x = 0;
+ unsigned y = 0;
+ unsigned width = mt->physical_width0;
+ unsigned height = mt->physical_height0;
+ unsigned depth = mt->physical_depth0; /* number of array layers. */
mt->total_width = mt->physical_width0;
@@ -61,7 +61,7 @@ brw_miptree_layout_2d(struct intel_mipmap_tree *mt)
* 2nd mipmap out past the width of its parent.
*/
if (mt->first_level != mt->last_level) {
- GLuint mip1_width;
+ unsigned mip1_width;
if (mt->compressed) {
mip1_width = ALIGN(minify(mt->physical_width0, 1), mt->align_w) +
@@ -79,7 +79,7 @@ brw_miptree_layout_2d(struct intel_mipmap_tree *mt)
mt->total_height = 0;
for ( level = mt->first_level ; level <= mt->last_level ; level++ ) {
- GLuint img_height;
+ unsigned img_height;
intel_miptree_set_level_info(mt, level, x, y, width,
height, depth);
@@ -110,8 +110,8 @@ static void
brw_miptree_layout_texture_array(struct intel_context *intel,
struct intel_mipmap_tree *mt)
{
- GLuint level;
- GLuint qpitch = 0;
+ unsigned level;
+ unsigned qpitch = 0;
int h0, h1, q;
h0 = ALIGN(mt->physical_height0, mt->align_h);
@@ -137,12 +137,12 @@ static void
brw_miptree_layout_texture_3d(struct intel_context *intel,
struct intel_mipmap_tree *mt)
{
- GLuint width = mt->physical_width0;
- GLuint height = mt->physical_height0;
- GLuint depth = mt->physical_depth0;
- GLuint pack_x_pitch, pack_x_nr;
- GLuint pack_y_pitch;
- GLuint level;
+ unsigned width = mt->physical_width0;
+ unsigned height = mt->physical_height0;
+ unsigned depth = mt->physical_depth0;
+ unsigned pack_x_pitch, pack_x_nr;
+ unsigned pack_y_pitch;
+ unsigned level;
mt->total_height = 0;
@@ -158,9 +158,9 @@ brw_miptree_layout_texture_3d(struct intel_context *intel,
pack_x_nr = 1;
for (level = mt->first_level ; level <= mt->last_level ; level++) {
- GLint x = 0;
- GLint y = 0;
- GLint q, j;
+ int x = 0;
+ int y = 0;
+ int q, j;
intel_miptree_set_level_info(mt, level,
0, mt->total_height,