[Mesa-dev] [PATCH 017/101] mesa: add KHR_no_error support to glBindSamplers()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 21 17:39:26 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/mapi/glapi/gen/ARB_multi_bind.xml | 2 +-
src/mesa/main/samplerobj.c | 8 ++++++++
src/mesa/main/samplerobj.h | 5 +++++
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/mapi/glapi/gen/ARB_multi_bind.xml b/src/mapi/glapi/gen/ARB_multi_bind.xml
index 601680f30b..5d78954fad 100644
--- a/src/mapi/glapi/gen/ARB_multi_bind.xml
+++ b/src/mapi/glapi/gen/ARB_multi_bind.xml
@@ -29,7 +29,7 @@
<param name="textures" type="const GLuint *"/>
</function>
- <function name="BindSamplers">
+ <function name="BindSamplers" no_error="true">
<param name="first" type="GLuint"/>
<param name="count" type="GLsizei"/>
<param name="samplers" type="const GLuint *"/>
diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c
index 351aae982d..e84c0277f1 100644
--- a/src/mesa/main/samplerobj.c
+++ b/src/mesa/main/samplerobj.c
@@ -403,6 +403,14 @@ bind_samplers(struct gl_context *ctx, GLuint first, GLsizei count,
void GLAPIENTRY
+_mesa_BindSamplers_no_error(GLuint first, GLsizei count, const GLuint *samplers)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ bind_samplers(ctx, first, count, samplers, true);
+}
+
+
+void GLAPIENTRY
_mesa_BindSamplers(GLuint first, GLsizei count, const GLuint *samplers)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h
index 26b5dd6b01..eb20df1040 100644
--- a/src/mesa/main/samplerobj.h
+++ b/src/mesa/main/samplerobj.h
@@ -112,8 +112,13 @@ GLboolean GLAPIENTRY
_mesa_IsSampler(GLuint sampler);
void GLAPIENTRY
_mesa_BindSampler(GLuint unit, GLuint sampler);
+
+void GLAPIENTRY
+_mesa_BindSamplers_no_error(GLuint first, GLsizei count, const GLuint *samplers);
+
void GLAPIENTRY
_mesa_BindSamplers(GLuint first, GLsizei count, const GLuint *samplers);
+
void GLAPIENTRY
_mesa_SamplerParameteri(GLuint sampler, GLenum pname, GLint param);
void GLAPIENTRY
--
2.13.3
More information about the mesa-dev
mailing list