gallium: Propagate tex_usage flags down to winsys.
This commit is contained in:
parent
fe06a47361
commit
c7ad942c54
|
@ -127,7 +127,8 @@ i915_displaytarget_layout(struct pipe_screen *screen,
|
||||||
tex->base.width[0],
|
tex->base.width[0],
|
||||||
tex->base.height[0],
|
tex->base.height[0],
|
||||||
tex->base.format,
|
tex->base.format,
|
||||||
flags);
|
flags,
|
||||||
|
tex->base.tex_usage);
|
||||||
|
|
||||||
/* Now extract the goodies:
|
/* Now extract the goodies:
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -115,7 +115,8 @@ softpipe_displaytarget_layout(struct pipe_screen *screen,
|
||||||
spt->base.width[0],
|
spt->base.width[0],
|
||||||
spt->base.height[0],
|
spt->base.height[0],
|
||||||
spt->base.format,
|
spt->base.format,
|
||||||
flags);
|
flags,
|
||||||
|
spt->base.tex_usage);
|
||||||
|
|
||||||
/* Now extract the goodies:
|
/* Now extract the goodies:
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -86,7 +86,8 @@ struct pipe_winsys
|
||||||
struct pipe_surface *surf,
|
struct pipe_surface *surf,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
enum pipe_format format,
|
enum pipe_format format,
|
||||||
unsigned flags);
|
unsigned flags,
|
||||||
|
unsigned tex_usage);
|
||||||
|
|
||||||
void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s);
|
void (*surface_release)(struct pipe_winsys *ws, struct pipe_surface **s);
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,8 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
|
||||||
struct pipe_surface *surf,
|
struct pipe_surface *surf,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
enum pipe_format format,
|
enum pipe_format format,
|
||||||
unsigned flags)
|
unsigned flags,
|
||||||
|
unsigned tex_usage)
|
||||||
{
|
{
|
||||||
const unsigned alignment = 64;
|
const unsigned alignment = 64;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -489,7 +489,8 @@ xm_surface_alloc_storage(struct pipe_winsys *winsys,
|
||||||
struct pipe_surface *surf,
|
struct pipe_surface *surf,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
enum pipe_format format,
|
enum pipe_format format,
|
||||||
unsigned flags)
|
unsigned flags,
|
||||||
|
unsigned tex_usage)
|
||||||
{
|
{
|
||||||
const unsigned alignment = 64;
|
const unsigned alignment = 64;
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,8 @@ aub_i915_surface_alloc_storage(struct pipe_winsys *winsys,
|
||||||
struct pipe_surface *surf,
|
struct pipe_surface *surf,
|
||||||
unsigned width, unsigned height,
|
unsigned width, unsigned height,
|
||||||
enum pipe_format format,
|
enum pipe_format format,
|
||||||
unsigned flags)
|
unsigned flags,
|
||||||
|
unsigned tex_usage)
|
||||||
{
|
{
|
||||||
const unsigned alignment = 64;
|
const unsigned alignment = 64;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue