struct pipe_resource *texture,
struct winsys_handle *whandle)
{
- struct radeon_winsys *rws = (struct radeon_winsys *)screen->winsys;
+ struct radeon_winsys *rws = r300_screen(screen)->rws;
struct r300_resource* tex = (struct r300_resource*)texture;
if (!tex) {
const struct pipe_resource *base,
struct winsys_handle *whandle)
{
- struct radeon_winsys *rws = (struct radeon_winsys*)screen->winsys;
struct r300_screen *rscreen = r300_screen(screen);
+ struct radeon_winsys *rws = rscreen->rws;
struct pb_buffer *buffer;
enum radeon_bo_layout microtile, macrotile;
unsigned stride;