summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-05-15 14:49:14 -0700
committerKenneth Graunke <[email protected]>2019-05-15 14:49:14 -0700
commitd305409db51b998f99330ebd27044758ef207abf (patch)
treeab9fb4cf83fbe5690847b52cf055182a799a86e7 /src/gallium
parent659c5800e566d3fce90501c06e47c61f9623d663 (diff)
st/dri: Minor style fixes
Trivial.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/dri/dri2.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
index f7672bcae06..eeda7e30f5f 100644
--- a/src/gallium/state_trackers/dri/dri2.c
+++ b/src/gallium/state_trackers/dri/dri2.c
@@ -115,20 +115,22 @@ static const struct dri2_format_mapping dri2_format_table[] = {
};
static const struct dri2_format_mapping *
-dri2_get_mapping_by_fourcc(int fourcc) {
+dri2_get_mapping_by_fourcc(int fourcc)
+{
for (unsigned i = 0; i < ARRAY_SIZE(dri2_format_table); i++) {
if (dri2_format_table[i].dri_fourcc == fourcc)
- return &dri2_format_table[i];
+ return &dri2_format_table[i];
}
return NULL;
}
static const struct dri2_format_mapping *
-dri2_get_mapping_by_format(int format) {
+dri2_get_mapping_by_format(int format)
+{
for (unsigned i = 0; i < ARRAY_SIZE(dri2_format_table); i++) {
if (dri2_format_table[i].dri_format == format)
- return &dri2_format_table[i];
+ return &dri2_format_table[i];
}
return NULL;