8 Replies Latest reply on Mar 7, 2014 5:06 PM by sinkingsugar

    Catalyst version 14.1 and amf-dem

    sinkingsugar

      Is amf-dem supposed to work with Catalyst version 14.1 (mantle support driver)? As I'm having issues initializing the encoder.

        • Re: Catalyst version 14.1 and amf-dem
          amit.agarwal

          Hi,

           

          Could you help us understand the following:

           

          - AMD Platform details?

          - OS details?

          - Code snippet on how you are initializing the AMF DEM encoder?

          - Share the execution logs.

           

          AMF DEM is supported on Catalyst 14.1.

            • Re: Catalyst version 14.1 and amf-dem
              sinkingsugar

              I'm using a A10-7850K as CPU, as GPU the currently enabled (bios) and in use is a R9 270X.

              Windows 8.1

               

              amf::AMFCreateEncoderVCEDEM(&mEncoder);

               

              if (!mEncoder) return false;

               

              amf::AMF_ERROR status = amf::AMF_OK;

               

              status = mEncoder->SetProperty(amf::DEM_USAGE, amf::AMFVariant(amf::DEM_USAGE_LOWLATENCY));

              if (status != amf::AMF_OK)

              {

                  PRINT_ERROR;

                  return false;

              }

               

              status = mEncoder->SetProperty(amf::DEM_OUTPUT_TYPE, amf::AMFVariant(amf::DEM_V_ES));

              if (status != amf::AMF_OK)

              {

                  PRINT_ERROR;

                  return false;

              }

               

              status = mEncoder->SetProperty(amf::DEM_PROFILE, amf::AMFVariant(amf::DEM_PROFILE_HIGH));

              if (status != amf::AMF_OK)

              {

                  PRINT_ERROR;

                  return false;

              }

               

              status = mEncoder->AcquireRemoteDisplay();

              if (status != amf::AMF_OK)

              {

                  PRINT_ERROR;

                  return false;

              }

               

              status = mEncoder->CreateEncoder(); //Fails here

              if (status != amf::AMF_OK)

              {

                  PRINT_ERROR;

                  goto fail;

              }

               

              I tried different profiles and output types without success.

              Also the SDK sample is giving the same error.

               

              This is an output that your API is printing:

              AMFEncoderVCEDEMImpl : DEMCreate() - DEM encoder create failed, err -2147483648

                • Re: Catalyst version 14.1 and amf-dem
                  sinkingsugar

                  I installed the newly released beta drivers and the issue is still there. But! I figured something out:

                  Selecting from the BIOS the APU (7850K) as GPU there is no issue at all, Only when using the PCI-E (R9 270X) the issue is present.

                  I hope this helps you figure the issue.

                  Regards.

                    • Re: Catalyst version 14.1 and amf-dem
                      amit.agarwal

                      Hi,

                       

                       

                      This makes sense. 

                       

                       

                      Correct me, but my understanding is that you have two GPU in your system.

                       

                       

                      - IGPU - as part of the APU

                      - DGPU - Discrete GPU

                       

                       

                      For DEM to work, the encoder should be created on the GPU to which the display is connected.  Looks like the Display is connected to the APU and when you try to create the encoder on the DGPU it fails.

                       

                       

                      Creating the encoder on the APU will succeed since display is also connected to the APU.

                       

                       

                      Hope this helps.

                       

                       

                      Please do let us know if you have any further query.

                        • Re: Catalyst version 14.1 and amf-dem
                          sinkingsugar

                          Thanks for your answer but it's not like this.

                          I have my screen connected to the DGPU, the IGPU is not being used.

                          To simplify:

                          Works when the screen is connected to the IGPU and the DGPU is unused.

                          Not works when the screen is connected to the DGPU and the IGPU is unused.

                           

                          In the last case the function AcquireRemoteDisplay() correctly creates another display but the encoder fails to initialize. I have no way in the API to force the encoder creation in the DGPU.

                           

                          Kind regards.

                            • Re: Catalyst version 14.1 and amf-dem
                              amit.agarwal

                              Hi,

                               

                              Thanks for your inputs.

                               

                              Case 1

                              Display and Encoder on IGPU.  DGPU is 'Disabled' from BIOS

                              Status: Works.

                               

                              Case 2

                              Display and Encoder on DGPU.  IGPU is 'Disabled' from BIOS

                              Status: Encoder fails to create

                               

                              So my questions are:

                              1. In Case 1, are you disabling the DGPU from the BIOS or are you disabling it by physically removing it from the PCI slot?

                              2. In Case 2, how are you ensuring that the Display is connected to the DGPU?  Also, how are you disabling the IGPU?

                              3. Could you share the hardware information from CCC?

                               

                              Currently we do not have support for Multi-GPU, so one of the GPUs should be Disabled in the BIOS before executing the sample.

                               

                              Another possibility is that in the case of IGPU a supported display resolution was selected but in the case of DGPU an unsupported resolution was selected.

                               

                              As per the DEM Screen Capture sample document, the supported output resolutions are:

                              • 1920x1080
                              • 1280x720
                              • 720x480
                              • 640x480

                               

                              Can you confirm whether the displayWidth and displayHeight parameters (part of "Display configuration parameters") are set to one of the above in the config file?

                               

                              What's the behavior with profile set to DEM_PROFILE_CONSTRAINED_BASELINE?

                               

                              Look forward to hearing from you.

                                • Re: Catalyst version 14.1 and amf-dem
                                  sinkingsugar

                                  1) Just from bios I'm selecting the IGPU as the main GPU, the DGPU will still show up in windows device manager but has no screen connected.

                                  2) Screen is connected to the DGPU indeed, from bios the DGPU is set as main GPU, both show up in device manager

                                  3) hwinfo-kurumi - Pastebin.com

                                   

                                  Resolution , was 1080 so a supported one, and I tried all profiles. Still no go.

                                   

                                  1,2) If I totally disable from bios the IGPU I had to reset the bios because the computer won't boot. I will investigate with Gigabyte and try a firmware update.

                                  I tried using xen server pci passthru and allowing only the DGPU as only GPU in the virtual machine and it worked as intended.. so the IGPU must be totally disabled to let a DGPU work as you said.

                                  But works when the IGPU is the main GPU and the DGPU just sits idle.

                                   

                                  Will you be able to fix this issue in a future release?

                                   

                                  This is my motherboard: GIGABYTE - Motherboard - Socket FM2+ - GA-F2A88XN-WIFI (rev. 3.0)

                                    • Re: Catalyst version 14.1 and amf-dem
                                      sinkingsugar

                                      Solved.

                                      The IGPU must be disabled.

                                      But it is not necessary to disable it from the BIOS, as long as it is disabled from Windows Device Manager everything will work.

                                      The only issue is that I will have to let the users of my software know about this step in order to make it work in this case.

                                       

                                      Thanks for your assistance Amit Agarwal.

                                      1 of 1 people found this helpful