# Simulating SVGA vs glDrawTex

**URL:** <https://forums.imgtec.com/t/simulating-svga-vs-gldrawtex/386>\
**Category:** PowerVR Insider\
**Created:** [June 24, 2009, 4:02pm UTC](https://forums.imgtec.com/t/simulating-svga-vs-gldrawtex/386 "2009-06-24T16:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnf](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnf](https://forums.imgtec.com/u/johnf)\
**Post date:** [June 24, 2009, 4:02pm UTC](https://forums.imgtec.com/t/simulating-svga-vs-gldrawtex/386/1 "2009-06-24T16:02:52Z")

</div>

Hello,  
I have some legacy code running on a OMAP35x EVM which can me mostly tricked into SVGA mode by calling glOrthof() with a 600,800 resolution, though of course the eglQuerySurface() will return 480,640.&nbsp; I say “mostly” since glDrawTexiOES() pixmaps are not affected by scale, etc.  
  
Are there any other tricks which might help with scaling pixmaps as well?&nbsp; I’m investigating just drawing texture on a rectangle, but I assume that glDrawTex() is faster.  
  
BTW, I’ll be using the 3530 TV out for SVGA, not the LCD, and am wondering if the PVR drivers care or would return different surface dimensions based on video mode, or if SGX always returns VGA.  
  
Thanks!  
,  
John

---

<div class="post-metadata">

**Author:** ![prabindh](https://avatars.discourse-cdn.com/v4/letter/p/ce73a5/32.png) [@prabindh](https://forums.imgtec.com/u/prabindh)\
**Post date:** [June 24, 2009, 4:56pm UTC](https://forums.imgtec.com/t/simulating-svga-vs-gldrawtex/386/2 "2009-06-24T16:56:15Z")

</div>

Its your framebuffer driver's properties that the SGX queries and uses for its output. For example, we routinely validate&nbsp;the SGX output on DVI and the LCD, on the EVM.

  

What would be your usecase ?
  

&nbsp;
  

Prabindh,TI

---

<div class="post-metadata">

**Author:** ![johnf](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnf](https://forums.imgtec.com/u/johnf)\
**Post date:** [June 24, 2009, 6:26pm UTC](https://forums.imgtec.com/t/simulating-svga-vs-gldrawtex/386/3 "2009-06-24T18:26:01Z")

</div>

There’s a video DAC on the DSS bus on our hardware which gives analog video out.&nbsp; It sounds like it will be up to the video driver to publish the right resolution, and I assume that the GLES surface will have the right width, height.
