diff options
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_screen.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 16e350c4c7c..2e31e8dfe93 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -502,12 +502,12 @@ vgpu9_get_shader_param(struct pipe_screen *screen, val = get_uint_cap(sws, SVGA3D_DEVCAP_MAX_FRAGMENT_SHADER_TEMPS, 32); return MIN2(val, SVGA3D_TEMPREG_MAX); case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR: - /* - * Although PS 3.0 has some addressing abilities it can only represent - * loops that can be statically determined and unrolled. Given we can - * only handle a subset of the cases that the state tracker already - * does it is better to defer loop unrolling to the state tracker. - */ + /* + * Although PS 3.0 has some addressing abilities it can only represent + * loops that can be statically determined and unrolled. Given we can + * only handle a subset of the cases that the state tracker already + * does it is better to defer loop unrolling to the state tracker. + */ return 0; case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED: return 0; @@ -690,7 +690,7 @@ vgpu10_get_shader_param(struct pipe_screen *screen, case PIPE_SHADER_CAP_PREFERRED_IR: return PIPE_SHADER_IR_TGSI; case PIPE_SHADER_CAP_SUPPORTED_IRS: - return 0; + return 0; case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED: case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED: case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED: @@ -797,12 +797,12 @@ svga_is_format_supported( struct pipe_screen *screen, case SVGA3D_A4R4G4B4: case SVGA3D_A1R5G5B5: return FALSE; - + default: return FALSE; } } - + /* * Query the host capabilities. */ @@ -993,14 +993,14 @@ static void svga_destroy_screen( struct pipe_screen *screen ) { struct svga_screen *svgascreen = svga_screen(screen); - + svga_screen_cache_cleanup(svgascreen); mtx_destroy(&svgascreen->swc_mutex); mtx_destroy(&svgascreen->tex_mutex); svgascreen->sws->destroy(svgascreen->sws); - + FREE(svgascreen); } @@ -1209,12 +1209,14 @@ error1: return NULL; } + struct svga_winsys_screen * svga_winsys_screen(struct pipe_screen *screen) { return svga_screen(screen)->sws; } + #ifdef DEBUG struct svga_screen * svga_screen(struct pipe_screen *screen) |