Skip to content

svga: support TGSI_OPCODE_SQRT for vgpu9

Neha Bhende requested to merge bhenden/mesa:svga_sqrt into master

Recently, mesa started using nir_to_tgsi utility for vertex program. This change is sending TGSI_OPCODE_SQRT. Since vmware doesn't suppport SQRT on older hardware version, this patch is using RCP and RSQ to support TGSI_OPCODE_SQRT for vgpu9

v2: As per suggested by Brian, using RSQ before RCP. Also, handling special case for zero

Reviewed-by: Brian Paul brianp@vmware.com Reviewed-by: Charmaine Lee charmainel@vmware.com

Merge request reports