summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/mipmap.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-06-19 00:36:48 -0700
committerKenneth Graunke <[email protected]>2018-02-16 10:48:10 -0800
commit9bcd31ea90addd7a16802de8a28b2f3242dc8298 (patch)
tree881bc896089ffb72bfe5713f5585b6ec42de1e55 /src/mesa/main/mipmap.h
parent03ab40b1f7bbff7f1c6ba128e202bdf31352ea66 (diff)
mesa: Move compute_num_levels from st_gen_mipmap.c to mipmap.c.
I want to use compute_num_levels inside i965. Rather than duplicating it, move it from mesa/st to core Mesa, and make it non-static. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/mipmap.h')
-rw-r--r--src/mesa/main/mipmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/mipmap.h b/src/mesa/main/mipmap.h
index d11c7fada37..1f108f7e5d8 100644
--- a/src/mesa/main/mipmap.h
+++ b/src/mesa/main/mipmap.h
@@ -28,6 +28,10 @@
#include "mtypes.h"
+unsigned
+_mesa_compute_num_levels(struct gl_context *ctx,
+ struct gl_texture_object *texObj,
+ GLenum target);
extern void
_mesa_generate_mipmap_level(GLenum target,