mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
softpipe: update fallthrough comments
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7747>
This commit is contained in:
parent
c27563d64a
commit
cd432d9981
2 changed files with 4 additions and 4 deletions
|
|
@ -729,12 +729,12 @@ sp_tgsi_get_dims(const struct tgsi_image *image,
|
|||
switch (params->tgsi_tex_instr) {
|
||||
case TGSI_TEXTURE_1D_ARRAY:
|
||||
dims[1] = iview->u.tex.last_layer - iview->u.tex.first_layer + 1;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case TGSI_TEXTURE_1D:
|
||||
return;
|
||||
case TGSI_TEXTURE_2D_ARRAY:
|
||||
dims[2] = iview->u.tex.last_layer - iview->u.tex.first_layer + 1;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case TGSI_TEXTURE_2D:
|
||||
case TGSI_TEXTURE_CUBE:
|
||||
case TGSI_TEXTURE_RECT:
|
||||
|
|
|
|||
|
|
@ -3321,12 +3321,12 @@ sp_get_dims(const struct sp_sampler_view *sp_sview,
|
|||
switch (view->target) {
|
||||
case PIPE_TEXTURE_1D_ARRAY:
|
||||
dims[1] = view->u.tex.last_layer - view->u.tex.first_layer + 1;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case PIPE_TEXTURE_1D:
|
||||
return;
|
||||
case PIPE_TEXTURE_2D_ARRAY:
|
||||
dims[2] = view->u.tex.last_layer - view->u.tex.first_layer + 1;
|
||||
/* fallthrough */
|
||||
FALLTHROUGH;
|
||||
case PIPE_TEXTURE_2D:
|
||||
case PIPE_TEXTURE_CUBE:
|
||||
case PIPE_TEXTURE_RECT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue