From bff404385ec2594182e643f5bf271b08844f990b Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 5 Mar 2019 09:43:20 +0100 Subject: [PATCH] vrend: make vrend_fb_bind_texture_id non-static later we need this function in the blitter Signed-off-by: Gert Wollny Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 8 ++++---- src/vrend_renderer.h | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index d68a245..823a642 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2029,10 +2029,10 @@ void debug_texture(const char *f, const struct vrend_resource *gt) #undef PRINT_TARGET } -static void vrend_fb_bind_texture_id(struct vrend_resource *res, - int id, - int idx, - uint32_t level, uint32_t layer) +void vrend_fb_bind_texture_id(struct vrend_resource *res, + int id, + int idx, + uint32_t level, uint32_t layer) { const struct util_format_description *desc = util_format_description(res->base.format); GLenum attachment = GL_COLOR_ATTACHMENT0 + idx; diff --git a/src/vrend_renderer.h b/src/vrend_renderer.h index 7083d1f..7add41d 100644 --- a/src/vrend_renderer.h +++ b/src/vrend_renderer.h @@ -301,6 +301,11 @@ void vrend_set_uniform_buffer(struct vrend_context *ctx, uint32_t shader, uint32_t index, uint32_t offset, uint32_t length, uint32_t res_handle); +void vrend_fb_bind_texture_id(struct vrend_resource *res, + int id, + int idx, + uint32_t level, uint32_t layer); + void vrend_set_tess_state(struct vrend_context *ctx, const float tess_factors[6]); void vrend_renderer_fini(void);