diff options
Diffstat (limited to 'src/gallium/drivers/svga/svga_resource.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_resource.c b/src/gallium/drivers/svga/svga_resource.c index a910ae0ca72..1c3bcd67afa 100644 --- a/src/gallium/drivers/svga/svga_resource.c +++ b/src/gallium/drivers/svga/svga_resource.c @@ -107,6 +107,12 @@ svga_init_resource_functions(struct svga_context *svga) svga->pipe.transfer_flush_region = u_transfer_flush_region_vtbl; svga->pipe.transfer_unmap = u_transfer_unmap_vtbl; svga->pipe.transfer_inline_write = u_transfer_inline_write_vtbl; + + if (svga_have_vgpu10(svga)) { + svga->pipe.generate_mipmap = svga_texture_generate_mipmap; + } else { + svga->pipe.generate_mipmap = NULL; + } } void |