mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
util/debug: delete more pipe_context::create_surface usage
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35236>
This commit is contained in:
parent
b92b67c941
commit
2d9f5d3bcd
1 changed files with 2 additions and 6 deletions
|
|
@ -137,18 +137,14 @@ debug_dump_texture(struct pipe_context *pipe,
|
|||
const char *prefix,
|
||||
struct pipe_resource *texture)
|
||||
{
|
||||
struct pipe_surface *surface, surf_tmpl;
|
||||
struct pipe_surface surf_tmpl;
|
||||
|
||||
if (!texture)
|
||||
return;
|
||||
|
||||
/* XXX for now, just dump image for layer=0, level=0 */
|
||||
u_surface_default_template(&surf_tmpl, texture);
|
||||
surface = pipe->create_surface(pipe, texture, &surf_tmpl);
|
||||
if (surface) {
|
||||
debug_dump_surface(pipe, prefix, surface);
|
||||
pipe->surface_destroy(pipe, surface);
|
||||
}
|
||||
debug_dump_surface(pipe, prefix, &surf_tmpl);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue