summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2011-09-23 22:42:18 -0700
committerKenneth Graunke <[email protected]>2011-09-23 22:42:18 -0700
commitd7cdbc3c5415d2dd5eee58834b13714a89eacf2b (patch)
tree490dfbef3e2544e2d46198a019369cd0d790e843 /src/mesa/drivers/dri/i915
parent0d949a51bb44da51cd843abcf6ecddc5e3d3a2f1 (diff)
intel: Remove pointless boolean return value from *_miptree_layout.
i915_miptree_layout, i945_miptree_layout, and brw_miptree_layout always just return GL_TRUE, so there's really no point to it. Change them to void functions and remove the (dead) error checking code. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Yuanhan Liu <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r--src/mesa/drivers/dri/i915/i915_tex_layout.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_tex_layout.c b/src/mesa/drivers/dri/i915/i915_tex_layout.c
index 45ca38e75d5..a86384bbcfd 100644
--- a/src/mesa/drivers/dri/i915/i915_tex_layout.c
+++ b/src/mesa/drivers/dri/i915/i915_tex_layout.c
@@ -224,7 +224,7 @@ i915_miptree_layout_2d(struct intel_mipmap_tree * mt)
}
}
-GLboolean
+void
i915_miptree_layout(struct intel_mipmap_tree * mt)
{
switch (mt->target) {
@@ -246,8 +246,6 @@ i915_miptree_layout(struct intel_mipmap_tree * mt)
DBG("%s: %dx%dx%d\n", __FUNCTION__,
mt->total_width, mt->total_height, mt->cpp);
-
- return GL_TRUE;
}
@@ -455,7 +453,7 @@ i945_miptree_layout_3d(struct intel_mipmap_tree * mt)
}
}
-GLboolean
+void
i945_miptree_layout(struct intel_mipmap_tree * mt)
{
switch (mt->target) {
@@ -480,6 +478,4 @@ i945_miptree_layout(struct intel_mipmap_tree * mt)
DBG("%s: %dx%dx%d\n", __FUNCTION__,
mt->total_width, mt->total_height, mt->cpp);
-
- return GL_TRUE;
}