|
|
@@ -106,7 +106,7 @@ egl_g3d_st_manager_get_egl_image(struct st_manager *smapi, |
|
|
|
gimg = egl_g3d_image(img); |
|
|
|
|
|
|
|
stimg->texture = NULL; |
|
|
|
pipe_texture_reference(&stimg->texture, gimg->texture); |
|
|
|
pipe_resource_reference(&stimg->texture, gimg->texture); |
|
|
|
stimg->face = gimg->face; |
|
|
|
stimg->level = gimg->level; |
|
|
|
stimg->zslice = gimg->zslice; |
|
|
@@ -151,11 +151,11 @@ static boolean |
|
|
|
egl_g3d_st_framebuffer_validate_pbuffer(struct st_framebuffer_iface *stfbi, |
|
|
|
const enum st_attachment_type *statts, |
|
|
|
unsigned count, |
|
|
|
struct pipe_texture **out) |
|
|
|
struct pipe_resource **out) |
|
|
|
{ |
|
|
|
_EGLSurface *surf = (_EGLSurface *) stfbi->st_manager_private; |
|
|
|
struct egl_g3d_surface *gsurf = egl_g3d_surface(surf); |
|
|
|
struct pipe_texture templ; |
|
|
|
struct pipe_resource templ; |
|
|
|
unsigned i; |
|
|
|
|
|
|
|
for (i = 0; i < count; i++) { |
|
|
@@ -176,12 +176,12 @@ egl_g3d_st_framebuffer_validate_pbuffer(struct st_framebuffer_iface *stfbi, |
|
|
|
templ.height0 = gsurf->base.Height; |
|
|
|
templ.depth0 = 1; |
|
|
|
templ.format = gsurf->stvis.color_format; |
|
|
|
templ.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET; |
|
|
|
templ.bind = PIPE_BIND_RENDER_TARGET; |
|
|
|
|
|
|
|
gsurf->render_texture = screen->texture_create(screen, &templ); |
|
|
|
gsurf->render_texture = screen->resource_create(screen, &templ); |
|
|
|
} |
|
|
|
|
|
|
|
pipe_texture_reference(&out[i], gsurf->render_texture); |
|
|
|
pipe_resource_reference(&out[i], gsurf->render_texture); |
|
|
|
} |
|
|
|
|
|
|
|
return TRUE; |