~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/mesa/state_tracker/st_sampler_view.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
 *
311
311
 * \param texObj  the st texture object,
312
312
 */
313
 
ASSERTED static boolean
 
313
ASSERTED static bool
314
314
check_sampler_swizzle(const struct st_context *st,
315
315
                      const struct gl_texture_object *texObj,
316
316
                      const struct pipe_sampler_view *sv,
386
386
         break;
387
387
      }
388
388
      FALLTHROUGH;
 
389
   case PIPE_FORMAT_NV21:
 
390
      if (texObj->pt->format == PIPE_FORMAT_G8_B8R8_420_UNORM) {
 
391
         format = PIPE_FORMAT_G8_B8R8_420_UNORM;
 
392
         break;
 
393
      }
 
394
      FALLTHROUGH;
389
395
   case PIPE_FORMAT_IYUV:
390
396
      format = PIPE_FORMAT_R8_UNORM;
391
397
      break;
408
414
      format = PIPE_FORMAT_R16G16B16A16_UNORM;
409
415
      break;
410
416
   case PIPE_FORMAT_YUYV:
 
417
   case PIPE_FORMAT_YVYU:
411
418
   case PIPE_FORMAT_UYVY:
 
419
   case PIPE_FORMAT_VYUY:
412
420
      if (texObj->pt->format == PIPE_FORMAT_R8G8_R8B8_UNORM ||
 
421
          texObj->pt->format == PIPE_FORMAT_R8B8_R8G8_UNORM ||
 
422
          texObj->pt->format == PIPE_FORMAT_B8R8_G8R8_UNORM ||
413
423
          texObj->pt->format == PIPE_FORMAT_G8R8_B8R8_UNORM) {
414
424
         format = texObj->pt->format;
415
425
         break;