summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/samplerobj.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-11-09 19:02:21 -0800
committerIan Romanick <ian.d.romanick@intel.com>2016-01-11 15:38:03 -0800
commitadb4b31bc33fda284319819877312f9e8631b657 (patch)
tree78dd201091bad4e995760d04d665597960d102f1 /src/mesa/main/samplerobj.h
parent4cf5c85ec70abb736e9c135e77c221b177d85d12 (diff)
downloadexternal_mesa3d-adb4b31bc33fda284319819877312f9e8631b657.zip
external_mesa3d-adb4b31bc33fda284319819877312f9e8631b657.tar.gz
external_mesa3d-adb4b31bc33fda284319819877312f9e8631b657.tar.bz2
mesa: Refator _mesa_BindSampler to make _mesa_bind_sampler
Pulls the parts of _mesa_BindSampler that aren't just parameter validation out into a function that can be called from other parts of Mesa (e.g., meta). Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/samplerobj.h')
-rw-r--r--src/mesa/main/samplerobj.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h
index 68a924c..abc6e01 100644
--- a/src/mesa/main/samplerobj.h
+++ b/src/mesa/main/samplerobj.h
@@ -93,6 +93,10 @@ extern void
_mesa_set_sampler_srgb_decode(struct gl_context *ctx,
struct gl_sampler_object *samp, GLenum param);
+extern void
+_mesa_bind_sampler(struct gl_context *ctx, GLuint unit,
+ struct gl_sampler_object *sampObj);
+
void GLAPIENTRY
_mesa_GenSamplers(GLsizei count, GLuint *samplers);
void GLAPIENTRY