gallium: Propagate tex_usage flags down to winsys.

This commit is contained in:
José Fonseca 2008-05-07 14:17:59 +09:00
parent fe06a47361
commit c7ad942c54
6 changed files with 12 additions and 6 deletions

View File

@ -127,7 +127,8 @@ i915_displaytarget_layout(struct pipe_screen *screen,
tex->base.width[0],
tex->base.height[0],
tex->base.format,
flags);
flags,
tex->base.tex_usage);
/* Now extract the goodies:
*/

View File

@ -115,7 +115,8 @@ softpipe_displaytarget_layout(struct pipe_screen *screen,
spt->base.width[0],
spt->base.height[0],
spt->base.format,
flags);
flags,
spt->base.tex_usage);
/* Now extract the goodies:
*/

View File

@ -86,7 +86,8 @@ struct pipe_winsys
struct pipe_surface *surf,
unsigned width, unsigned height,
enum pipe_format format,
unsigned flags);
unsigned flags,
unsigned tex_usage);
void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s);

View File

@ -206,7 +206,8 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
struct pipe_surface *surf,
unsigned width, unsigned height,
enum pipe_format format,
unsigned flags)
unsigned flags,
unsigned tex_usage)
{
const unsigned alignment = 64;
int ret;

View File

@ -489,7 +489,8 @@ xm_surface_alloc_storage(struct pipe_winsys *winsys,
struct pipe_surface *surf,
unsigned width, unsigned height,
enum pipe_format format,
unsigned flags)
unsigned flags,
unsigned tex_usage)
{
const unsigned alignment = 64;

View File

@ -276,7 +276,8 @@ aub_i915_surface_alloc_storage(struct pipe_winsys *winsys,
struct pipe_surface *surf,
unsigned width, unsigned height,
enum pipe_format format,
unsigned flags)
unsigned flags,
unsigned tex_usage)
{
const unsigned alignment = 64;