diff options
author | Charmaine Lee <[email protected]> | 2015-12-22 11:20:41 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-14 10:44:25 -0700 |
commit | 6303231a1ddf646b05c43c6bbc7fa71314ebb3fc (patch) | |
tree | 5a1c447d74ff7b7bbc2c9576fbe8dbd23208a5f3 /src/gallium/drivers/svga/svga_resource_texture.h | |
parent | 78e628ae43015a2a8b6a1d7339eb7eb63ab56848 (diff) |
svga: add DXGenMips command support
For those formats that support hw mipmap generation, use the
DXGenMips command. Otherwise fallback to the mipmap generation utility.
Tested with piglit, OpenGL apps (Heaven, Turbine, Cinebench)
v2: make sure the texture surface was created with the render target bind flag
set relocation flag to SVGA_RELOC_WRITE for the texture surface
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_resource_texture.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.h b/src/gallium/drivers/svga/svga_resource_texture.h index 0326907240e..99ba33b2677 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.h +++ b/src/gallium/drivers/svga/svga_resource_texture.h @@ -217,7 +217,14 @@ svga_texture_from_handle(struct pipe_screen * screen, const struct pipe_resource *template, struct winsys_handle *whandle); - +boolean +svga_texture_generate_mipmap(struct pipe_context *pipe, + struct pipe_resource *pt, + enum pipe_format format, + unsigned base_level, + unsigned last_level, + unsigned first_layer, + unsigned last_layer); #endif /* SVGA_TEXTURE_H */ |