svga: add DXGenMips command support
authorCharmaine Lee <charmainel@vmware.com>
Tue, 22 Dec 2015 19:20:41 +0000 (11:20 -0800)
committerBrian Paul <brianp@vmware.com>
Thu, 14 Jan 2016 17:44:25 +0000 (10:44 -0700)
commit6303231a1ddf646b05c43c6bbc7fa71314ebb3fc
tree5a1c447d74ff7b7bbc2c9576fbe8dbd23208a5f3
parent78e628ae43015a2a8b6a1d7339eb7eb63ab56848
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 <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_cmd.h
src/gallium/drivers/svga/svga_cmd_vgpu10.c
src/gallium/drivers/svga/svga_format.c
src/gallium/drivers/svga/svga_format.h
src/gallium/drivers/svga/svga_resource.c
src/gallium/drivers/svga/svga_resource_texture.c
src/gallium/drivers/svga/svga_resource_texture.h
src/gallium/drivers/svga/svga_sampler_view.h
src/gallium/drivers/svga/svga_screen.c
src/gallium/drivers/svga/svga_state_sampler.c