.. | .. |
---|
22 | 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
---|
23 | 23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
---|
24 | 24 | */ |
---|
25 | | -#include <drm/drmP.h> |
---|
| 25 | + |
---|
| 26 | +#include <linux/slab.h> |
---|
| 27 | +#include <linux/uaccess.h> |
---|
| 28 | + |
---|
| 29 | +#include <drm/drm_device.h> |
---|
| 30 | +#include <drm/drm_file.h> |
---|
| 31 | +#include <drm/drm_print.h> |
---|
26 | 32 | #include <drm/savage_drm.h> |
---|
| 33 | + |
---|
27 | 34 | #include "savage_drv.h" |
---|
28 | 35 | |
---|
29 | 36 | void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv, |
---|
.. | .. |
---|
299 | 306 | case SAVAGE_PRIM_TRILIST_201: |
---|
300 | 307 | reorder = 1; |
---|
301 | 308 | prim = SAVAGE_PRIM_TRILIST; |
---|
| 309 | + fallthrough; |
---|
302 | 310 | case SAVAGE_PRIM_TRILIST: |
---|
303 | 311 | if (n % 3 != 0) { |
---|
304 | 312 | DRM_ERROR("wrong number of vertices %u in TRILIST\n", |
---|
.. | .. |
---|
436 | 444 | case SAVAGE_PRIM_TRILIST_201: |
---|
437 | 445 | reorder = 1; |
---|
438 | 446 | prim = SAVAGE_PRIM_TRILIST; |
---|
| 447 | + fallthrough; |
---|
439 | 448 | case SAVAGE_PRIM_TRILIST: |
---|
440 | 449 | if (n % 3 != 0) { |
---|
441 | 450 | DRM_ERROR("wrong number of vertices %u in TRILIST\n", |
---|
.. | .. |
---|
557 | 566 | case SAVAGE_PRIM_TRILIST_201: |
---|
558 | 567 | reorder = 1; |
---|
559 | 568 | prim = SAVAGE_PRIM_TRILIST; |
---|
| 569 | + fallthrough; |
---|
560 | 570 | case SAVAGE_PRIM_TRILIST: |
---|
561 | 571 | if (n % 3 != 0) { |
---|
562 | 572 | DRM_ERROR("wrong number of indices %u in TRILIST\n", n); |
---|
.. | .. |
---|
695 | 705 | case SAVAGE_PRIM_TRILIST_201: |
---|
696 | 706 | reorder = 1; |
---|
697 | 707 | prim = SAVAGE_PRIM_TRILIST; |
---|
| 708 | + fallthrough; |
---|
698 | 709 | case SAVAGE_PRIM_TRILIST: |
---|
699 | 710 | if (n % 3 != 0) { |
---|
700 | 711 | DRM_ERROR("wrong number of indices %u in TRILIST\n", n); |
---|
.. | .. |
---|
1055 | 1066 | ret = -EINVAL; |
---|
1056 | 1067 | goto done; |
---|
1057 | 1068 | } |
---|
1058 | | - /* fall through */ |
---|
| 1069 | + fallthrough; |
---|
1059 | 1070 | case SAVAGE_CMD_DMA_PRIM: |
---|
1060 | 1071 | case SAVAGE_CMD_VB_PRIM: |
---|
1061 | 1072 | if (!first_draw_cmd) |
---|