summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-09-26 09:58:55 -0600
committerBrian Paul <[email protected]>2017-09-28 10:41:33 -0600
commite8d09f80eab31a46afb25bd365daaa6ae5924d09 (patch)
tree7c14ab6a11418b9084e249f932199d6586ad509e
parentf33fbe2cf966cd7e4c12b3065b721a31683b249b (diff)
svga: trivial whitespace clean-ups in svga_screen.c
-rw-r--r--src/gallium/drivers/svga/svga_screen.c24
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)