Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon add missing break for ...



details:   https://anonhg.NetBSD.org/src/rev/09376b760813
branches:  trunk
changeset: 448738:09376b760813
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Feb 08 04:11:53 2019 +0000

description:
add missing break for CP_COHER_BASE case.
convert fallthru comments.

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c |  5 +++--
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r300.c         |  8 ++++----
 sys/external/bsd/drm2/dist/drm/radeon/radeon_r420.c         |  5 +++--
 3 files changed, 10 insertions(+), 8 deletions(-)

diffs (88 lines):

diff -r e839ab91ed50 -r 09376b760813 sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c       Fri Feb 08 04:06:00 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_evergreen_cs.c       Fri Feb 08 04:11:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_evergreen_cs.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $        */
+/*     $NetBSD: radeon_evergreen_cs.c,v 1.2 2019/02/08 04:11:53 mrg Exp $      */
 
 /*
  * Copyright 2010 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_evergreen_cs.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_evergreen_cs.c,v 1.2 2019/02/08 04:11:53 mrg Exp $");
 
 #include <drm/drmP.h>
 #include "radeon.h"
@@ -1335,6 +1335,7 @@
                        return -EINVAL;
                }
                ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff);
+               break;
        case CB_TARGET_MASK:
                track->cb_target_mask = radeon_get_ib_value(p, idx);
                track->cb_dirty = true;
diff -r e839ab91ed50 -r 09376b760813 sys/external/bsd/drm2/dist/drm/radeon/radeon_r300.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_r300.c       Fri Feb 08 04:06:00 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_r300.c       Fri Feb 08 04:11:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_r300.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $        */
+/*     $NetBSD: radeon_r300.c,v 1.2 2019/02/08 04:11:53 mrg Exp $      */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_r300.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_r300.c,v 1.2 2019/02/08 04:11:53 mrg Exp $");
 
 #include <linux/seq_file.h>
 #include <linux/slab.h>
@@ -846,7 +846,7 @@
                                          ((idx_value >> 21) & 0xF));
                                return -EINVAL;
                        }
-                       /* Pass through. */
+                       /* FALLTHROUGH */
                case 6:
                        track->cb[i].cpp = 4;
                        break;
@@ -997,7 +997,7 @@
                                return -EINVAL;
                        }
                        /* The same rules apply as for DXT3/5. */
-                       /* Pass through. */
+                       /* FALLTHROUGH */
                case R300_TX_FORMAT_DXT3:
                case R300_TX_FORMAT_DXT5:
                        track->textures[i].cpp = 1;
diff -r e839ab91ed50 -r 09376b760813 sys/external/bsd/drm2/dist/drm/radeon/radeon_r420.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_r420.c       Fri Feb 08 04:06:00 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_r420.c       Fri Feb 08 04:11:53 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radeon_r420.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $        */
+/*     $NetBSD: radeon_r420.c,v 1.2 2019/02/08 04:11:53 mrg Exp $      */
 
 /*
  * Copyright 2008 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_r420.c,v 1.1 2018/08/27 14:38:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_r420.c,v 1.2 2019/02/08 04:11:53 mrg Exp $");
 
 #include <linux/seq_file.h>
 #include <linux/slab.h>
@@ -115,6 +115,7 @@
        default:
                /* force to 1 pipe */
                num_pipes = 1;
+               /* FALLTHROUGH */
        case 1:
                tmp = (0 << 1);
                break;



Home | Main Index | Thread Index | Old Index