cell: fix build
compile fix for cell driver. Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
committed by
Brian Paul
parent
45c8909148
commit
0963099d5e
@@ -138,6 +138,9 @@ cell_is_format_supported( struct pipe_screen *screen,
|
||||
unsigned tex_usage,
|
||||
unsigned geom_flags )
|
||||
{
|
||||
|
||||
struct sw_winsys *winsys = cell_screen(screen)->winsys;
|
||||
|
||||
if (tex_usage & (PIPE_TEXTURE_USAGE_DISPLAY_TARGET |
|
||||
PIPE_TEXTURE_USAGE_SCANOUT |
|
||||
PIPE_TEXTURE_USAGE_SHARED)) {
|
||||
|
||||
@@ -105,7 +105,7 @@ cell_displaytarget_layout(struct pipe_screen *screen,
|
||||
/* Round up the surface size to a multiple of the tile size?
|
||||
*/
|
||||
ct->dt = winsys->displaytarget_create(winsys,
|
||||
ct->base->tex_usage,
|
||||
ct->base.tex_usage,
|
||||
ct->base.format,
|
||||
ct->base.width0,
|
||||
ct->base.height0,
|
||||
|
||||
Reference in New Issue
Block a user