[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:
{
"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"
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