Forums - Multisampling in the Snapdragon XR SDK

2 posts / 0 new
Last post
Multisampling in the Snapdragon XR SDK
rupert.rawnsley
Join Date: 26 Feb 20
Posts: 3
Posted: Thu, 2020-05-07 07:18

[This seems the most appropriate forum  for this question, but please move it if it is in the wrong place]

I am compiling the SimpleVR example from SnapdragonXR-SDK-binary.rel.4.0.1 and running it on a XR1-based headset. Here is the output:

As you can see, there is significant aliasing along the edges of the shape, so to reduce that I tried to turn on multi-sampling. This is provided for in the code here:

void SvrRenderTarget::Initialize(int width, int height, int samples, int colorSizedFormat, bool requiresDepth, bool isProtectedContent)
{
    mWidth = width;
    mHeight = height;
    mSamples = samples;
    mIsProtectedContent = isProtectedContent;

    int format, type;
    GetFormatTypeFromSizedFormat( colorSizedFormat, format, type);

    //Create the color attachment
   if (samples > 1)
   {
      InitializeMultiSample(width, height, samples, colorSizedFormat, format, requiresDepth);
   }
   else
   {
      InitializeSingleSample(width, height, samples, colorSizedFormat, format, type, requiresDepth);
   }
    ...

 

So I passed a samples value of "2" into this function, but the output screen then looks like this:

Obviously something is going wrong, but I am not sure what and there are no clues in the logcat output.

Here is some debug information that the SDK writes out:

   QUALCOMM build                   : 183617d, I6f3c5dffee
    Build Date                       : 10/01/18
    OpenGL ES Shader Compiler Version: EV031.25.07.01
    Local Branch                     : mybranch36158767
    Remote Branch                    : quic/gfx-adreno.lnx.1.0.r67-rel
    Remote Branch                    : NONE
    Reconstruct Branch               : NOTHING
 
Here is a full dump of the version info file:
 
# cat /firmware/verinfo/ver_info.txt
{
"Image_Build_IDs": {
"adsp": "ADSP.VT.5.0.c1-00025-SDM710-1",
"aop": "AOP.HO.1.1.C1-00018-SDM710AAAAANAZO-1",
"apps": "LA.UM.6.8.2.r1-01100-SDM710.0-1",
"boot": "BOOT.XF.2.1-00102-SDM710LZB-1",
"btfm": "BTFM.CHE.2.1.3-00288-QCACHROMZ-1",
"cdsp": "CDSP.VT.2.0.c1-00026-SDM710-1",
"common": "SXR1130.LA.1.0-00040-STD.PROD-1",
"cpev2": "CPE.TSF.3.0-00002-W9335AAAAAAAZQ-4",
"glue": "GLUE.SXR1130_LA.1.0-00003-NOOP_TEST-1",
"modem": "MPSS.AT.4.0.2-00514.1-SDM710_GEN_PACK-1",
"tz": "TZ.XF.5.0.2-00054-S710AAAAANAZT-1",
"video": "VIDEO.VE.5.0-00078-PROD-2",
"wapi": "WLAN_ADDON.HL.1.0-00030-CNSS_RMZ_WAPI-1",
"wdsp": "WDSP.9340.1.0-00277-W9340AAAAAAAZQ-1",
"wlan": "WLAN.HL.2.0.1.c10-00121.1-QCAHLSWMTPLZ-1"
},
"Metabuild_Info": {
"Meta_Build_ID": "SXR1130.LA.1.0-00040-STD.PROD-1",
"Product_Flavor": "asic",
"Time_Stamp": "2019-09-17 16:49:24"
},
"Version": "1.0"

 

 

 

 

  • Up0
  • Down0
rupert.rawnsley
Join Date: 26 Feb 20
Posts: 3
Posted: Thu, 2020-05-07 07:22

The original post lost both images and most of the formatting and when I press edit I just get a blank screen. Here are the two images:

Without multisampling: https://imgur.com/KW4SbdL

With multisampling: https://imgur.com/S9NyFik

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.