aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/common/meta.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-11-09 12:41:47 -0800
committerIan Romanick <[email protected]>2016-01-11 15:38:03 -0800
commitd796b491cc0fb42c503b982a043e0e490d691353 (patch)
treed9d8719efde3f81d8d5c8b7dbf1184ce7e2378d4 /src/mesa/drivers/common/meta.h
parentad5b1b41aebb029c904ce4e95f6a79b7280915e7 (diff)
meta/blit: Use internal functions for sampler object access
This requires tracking the sampler object using the gl_sampler_object* instead of the object name. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.h')
-rw-r--r--src/mesa/drivers/common/meta.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h
index 5b04755a63e..268824cfcb0 100644
--- a/src/mesa/drivers/common/meta.h
+++ b/src/mesa/drivers/common/meta.h
@@ -309,7 +309,8 @@ struct blit_state
struct fb_tex_blit_state
{
GLint baseLevelSave, maxLevelSave;
- GLuint sampler, samplerSave, stencilSamplingSave;
+ struct gl_sampler_object *samp_obj;
+ GLuint samplerSave, stencilSamplingSave;
GLuint tempTex;
};
@@ -465,7 +466,7 @@ _mesa_meta_bind_rb_as_tex_image(struct gl_context *ctx,
struct gl_texture_object **texObj,
GLenum *target);
-GLuint
+struct gl_sampler_object *
_mesa_meta_setup_sampler(struct gl_context *ctx,
const struct gl_texture_object *texObj,
GLenum target, GLenum filter, GLuint srcLevel);