~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/intel/isl/isl_gfx8.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:
61
61
    *      Min LOD, Mip Count / LOD, and Resource Min LOD must be set to zero.
62
62
    */
63
63
   if (info->dim != ISL_SURF_DIM_2D)
64
 
      return false;
 
64
      return notify_failure(info, "msaa only supported on 2D surfaces");
65
65
   if (info->levels > 1)
66
 
      return false;
 
66
      return notify_failure(info, "msaa not supported with LOD > 1");
67
67
 
68
68
   /* More obvious restrictions */
69
 
   if (isl_surf_usage_is_display(info->usage))
70
 
      return false;
 
69
   assert(!isl_surf_usage_is_display(info->usage));
 
70
   assert(tiling != ISL_TILING_LINEAR);
 
71
 
71
72
   if (!isl_format_supports_multisampling(dev->info, info->format))
72
 
      return false;
 
73
      return notify_failure(info, "format does not support msaa");
73
74
 
74
75
   if (isl_surf_usage_is_depth_or_stencil(info->usage) ||
75
76
       (info->usage & ISL_SURF_USAGE_HIZ_BIT))
76
77
      require_interleaved = true;
77
78
 
78
79
   if (require_array && require_interleaved)
79
 
      return false;
 
80
      return notify_failure(info, "cannot require array & interleaved msaa layouts");
80
81
 
81
82
   if (require_interleaved) {
82
83
      *msaa_layout = ISL_MSAA_LAYOUT_INTERLEAVED;