Go to the source code of this file.
Data Structures | |
struct | brw_screen |
Subclass of pipe_screen. More... | |
Functions | |
static struct brw_screen * | brw_screen (struct pipe_screen *pscreen) |
cast wrapper | |
struct pipe_screen * | brw_create_screen (struct pipe_winsys *winsys, uint pci_id) |
Create a new brw_screen object. |
struct pipe_screen* brw_create_screen | ( | struct pipe_winsys * | winsys, | |
uint | pci_id | |||
) | [read] |
Create a new brw_screen object.
Definition at line 222 of file brw_screen.c.
References brw_destroy_screen(), brw_get_name(), brw_get_param(), brw_get_paramf(), brw_get_vendor(), brw_init_screen_texture_funcs(), brw_is_format_supported(), CALLOC_STRUCT, pipe_screen::destroy, pipe_screen::get_name, pipe_screen::get_param, pipe_screen::get_paramf, pipe_screen::get_vendor, pipe_screen::is_format_supported, brw_screen::pci_id, brw_screen::screen, and pipe_screen::winsys.
00223 { 00224 struct brw_screen *brwscreen = CALLOC_STRUCT(brw_screen); 00225 00226 if (!brwscreen) 00227 return NULL; 00228 00229 brwscreen->pci_id = pci_id; 00230 00231 brwscreen->screen.winsys = winsys; 00232 00233 brwscreen->screen.destroy = brw_destroy_screen; 00234 00235 brwscreen->screen.get_name = brw_get_name; 00236 brwscreen->screen.get_vendor = brw_get_vendor; 00237 brwscreen->screen.get_param = brw_get_param; 00238 brwscreen->screen.get_paramf = brw_get_paramf; 00239 brwscreen->screen.is_format_supported = brw_is_format_supported; 00240 00241 brw_init_screen_texture_funcs(&brwscreen->screen); 00242 00243 return &brwscreen->screen; 00244 }
static struct brw_screen* brw_screen | ( | struct pipe_screen * | pscreen | ) | [static, read] |
cast wrapper
Definition at line 54 of file brw_screen.h.
00055 { 00056 return (struct brw_screen *) pscreen; 00057 }