nvc0: fix implicit-fallthrough gcc warning

gcc warning:
../src/gallium/drivers/nouveau/nvc0/nvc0_screen.c: In function ‘nvc0_screen_get_compute_param’:
../src/gallium/drivers/nouveau/nvc0/nvc0_screen.c:623:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
  623 |       switch (obj_class) {
      |       ^~~~~~
../src/gallium/drivers/nouveau/nvc0/nvc0_screen.c:634:4: note: here
  634 |    case PIPE_COMPUTE_CAP_MAX_PRIVATE_SIZE: /* l[] */
      |    ^~~~

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <dev@pmoreau.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10544>
This commit is contained in:
Karol Herbst 2021-04-30 13:04:16 +02:00 committed by Marge Bot
parent 99d4b13a32
commit 0c591ace9e
1 changed files with 0 additions and 3 deletions

View File

@ -623,13 +623,10 @@ nvc0_screen_get_compute_param(struct pipe_screen *pscreen,
switch (obj_class) {
case GM200_COMPUTE_CLASS:
RET((uint64_t []) { 96 << 10 });
break;
case GM107_COMPUTE_CLASS:
RET((uint64_t []) { 64 << 10 });
break;
default:
RET((uint64_t []) { 48 << 10 });
break;
}
case PIPE_COMPUTE_CAP_MAX_PRIVATE_SIZE: /* l[] */
RET((uint64_t []) { 512 << 10 });