isl: Update isl_swizzle_supports_rendering comment

Bspec 57023: RENDER_SURFACE_STATE:: Shader Channel Select Red

   "Render Target messages do not support swapping of colors with
   alpha. The Red, Green, or Blue Shader Channel Selects do not
   support SCS_ALPHA. The Shader Channel Select Alpha does not support
   SCS_RED, SCS_GREEN, or SCS_BLUE."

Cc: mesa-stable
Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28791>
This commit is contained in:
Sagar Ghuge 2024-04-19 08:52:28 -07:00 committed by Marge Bot
parent 3a868970a2
commit 2d8686ccd5
1 changed files with 7 additions and 0 deletions

View File

@ -4227,6 +4227,13 @@ isl_swizzle_supports_rendering(const struct intel_device_info *devinfo,
*
* "For Render Target, this field MUST be programmed to
* value = SCS_ALPHA."
*
* Bspec 57023: RENDER_SURFACE_STATE:: Shader Channel Select Red
*
* "Render Target messages do not support swapping of colors with
* alpha. The Red, Green, or Blue Shader Channel Selects do not
* support SCS_ALPHA. The Shader Channel Select Alpha does not support
* SCS_RED, SCS_GREEN, or SCS_BLUE."
*/
return (swizzle.r == ISL_CHANNEL_SELECT_RED ||
swizzle.r == ISL_CHANNEL_SELECT_GREEN ||