summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-08-21 21:44:22 -0600
committerBrian Paul <[email protected]>2017-08-24 07:30:23 -0600
commit84f35c342353d78cb83e3b010c416de07232c4c1 (patch)
treeb3023b59ca8f4eac3ca5d5d7a6f4b5847a8b3860 /src/mesa/state_tracker
parent6ad313acf524e06e66739361fb8c02eb6e44980c (diff)
st/mesa: add const qualifiers in st_extensions.c
Trivial.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_extensions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 74db53e60c9..904d9cd8340 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -541,7 +541,7 @@ init_format_extensions(struct pipe_screen *screen,
static unsigned
get_max_samples_for_formats(struct pipe_screen *screen,
unsigned num_formats,
- enum pipe_format *formats,
+ const enum pipe_format *formats,
unsigned max_samples,
unsigned bind)
{
@@ -995,23 +995,23 @@ void st_init_extensions(struct pipe_screen *screen,
/* Maximum sample count. */
{
- enum pipe_format color_formats[] = {
+ static const enum pipe_format color_formats[] = {
PIPE_FORMAT_R8G8B8A8_UNORM,
PIPE_FORMAT_B8G8R8A8_UNORM,
PIPE_FORMAT_A8R8G8B8_UNORM,
PIPE_FORMAT_A8B8G8R8_UNORM,
};
- enum pipe_format depth_formats[] = {
+ static const enum pipe_format depth_formats[] = {
PIPE_FORMAT_Z16_UNORM,
PIPE_FORMAT_Z24X8_UNORM,
PIPE_FORMAT_X8Z24_UNORM,
PIPE_FORMAT_Z32_UNORM,
PIPE_FORMAT_Z32_FLOAT
};
- enum pipe_format int_formats[] = {
+ static const enum pipe_format int_formats[] = {
PIPE_FORMAT_R8G8B8A8_SINT
};
- enum pipe_format void_formats[] = {
+ static const enum pipe_format void_formats[] = {
PIPE_FORMAT_NONE
};