Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117362

Viewport is not handled correctly on devices that lack non-power-of-2 texture support

    XMLWordPrintable

    Details

      Description

      While fixing RT-29954, we again ran into a problem rendering into an RTT whose content size is bigger than the viewport into which we want to render. A partial fix (more of a workaround, really) was implemented in the ES2 pipeline to allow ParallelCamera to work for for systems without NPOT support -- specifically BeagleBoard.

      This solution is incomplete in that it doesn't work correctly for PerspectiveCamera. Also, by setting the forcepowerof2 flag, I verified that if we ever find a D3D system without NPOT suport, it would break as well.

      A longer term solution should involve having the RTT itself be aware of the viewport into which it is rendered. Note that this is an issue that affects more than just the camera transforms. See RT-26216, RT-26217, RT-26218 for other examples of why not having that information is a problem. Note that there could be other cases besides lack of NPOT support where an RTT could be bigger than the viewport into which you are rendering (e.g., reusing an RTT that is bigger than you need to avoid recreating it). It is possible we just haven't hit those cases yet in testing on BeagleBoard.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jandrese Joe Andresen (Inactive)
              Reporter:
              kcr Kevin Rushforth
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: