Explorar el Código

svga: Tag cursors with the scanout hint

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
tags/mesa-8.0-rc1
Jakob Bornecrantz hace 13 años
padre
commit
292c21bfdc
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3
    2
      src/gallium/drivers/svga/svga_resource_texture.c

+ 3
- 2
src/gallium/drivers/svga/svga_resource_texture.c Ver fichero

@@ -460,11 +460,12 @@ svga_texture_create(struct pipe_screen *screen,
tex->key.cachable = 0;
}

if (template->bind & PIPE_BIND_SCANOUT) {
if (template->bind & (PIPE_BIND_SCANOUT |
PIPE_BIND_CURSOR)) {
tex->key.flags |= SVGA3D_SURFACE_HINT_SCANOUT;
tex->key.cachable = 0;
}
/*
* XXX: Never pass the SVGA3D_SURFACE_HINT_RENDERTARGET hint. Mesa cannot
* know beforehand whether a texture will be used as a rendertarget or not

Cargando…
Cancelar
Guardar