vrend: rename vrend_renderer_resource_allocate_texture

Rename it to vrend_resource_alloc_texture to match
vrend_resource_alloc_buffer.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
macos/master
Chia-I Wu 4 years ago
parent 4a71d9fc67
commit 3c91b4093d
  1. 10
      src/vrend_renderer.c

@ -6749,9 +6749,9 @@ static enum virgl_formats vrend_resource_fixup_emulated_bgra(struct vrend_resour
return vrend_format_replace_emulated(gr->base.bind, format); return vrend_format_replace_emulated(gr->base.bind, format);
} }
static int vrend_renderer_resource_allocate_texture(struct vrend_resource *gr, static int vrend_resource_alloc_texture(struct vrend_resource *gr,
enum virgl_formats format, enum virgl_formats format,
void *image_oes) void *image_oes)
{ {
uint level; uint level;
GLenum internalformat, glformat, gltype; GLenum internalformat, glformat, gltype;
@ -6975,7 +6975,7 @@ vrend_renderer_resource_create(const struct vrend_renderer_resource_create_args
} else { } else {
const enum virgl_formats format = const enum virgl_formats format =
vrend_resource_fixup_emulated_bgra(gr, image_oes); vrend_resource_fixup_emulated_bgra(gr, image_oes);
ret = vrend_renderer_resource_allocate_texture(gr, format, image_oes); ret = vrend_resource_alloc_texture(gr, format, image_oes);
} }
if (ret) { if (ret) {
@ -8842,7 +8842,7 @@ static void vrend_renderer_blit_int(struct vrend_context *ctx,
intermediate_copy = (struct vrend_resource *)CALLOC_STRUCT(vrend_texture); intermediate_copy = (struct vrend_resource *)CALLOC_STRUCT(vrend_texture);
vrend_renderer_resource_copy_args(&args, intermediate_copy); vrend_renderer_resource_copy_args(&args, intermediate_copy);
/* this is PIPE_MASK_ZS and bgra fixup is not needed */ /* this is PIPE_MASK_ZS and bgra fixup is not needed */
MAYBE_UNUSED int r = vrend_renderer_resource_allocate_texture(intermediate_copy, args.format, NULL); MAYBE_UNUSED int r = vrend_resource_alloc_texture(intermediate_copy, args.format, NULL);
assert(!r); assert(!r);
glGenFramebuffers(1, &intermediate_fbo); glGenFramebuffers(1, &intermediate_fbo);

Loading…
Cancel
Save