Re: [Mesa-dev] i965: slow glTexSubImage2D because of Y tiling

2013-12-28 Thread Tomash Brechko
Ok, thanks for the answers, I'll wait for release 10.1 on Fedora then. -- Tomash Brechko ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] i965: slow glTexSubImage2D because of Y tiling

2013-12-27 Thread Kenneth Graunke
On 12/27/2013 05:56 AM, Tomash Brechko wrote: > So I wonder if there are strong reasons to prefer Y tiling for textures, > at least on gen == 6? Is Y tiling preffered because of faster texel > lookups (assuming glTexSubImage2D() is not called on each frame)? Yes, I observed an ~8% improvement in

Re: [Mesa-dev] i965: slow glTexSubImage2D because of Y tiling

2013-12-27 Thread Alexander Monakov
Hi, i965 texture fast upload path did not work in 9.2.x due to this tiling change, but was improved for 10.0 release series; however, you need to use GL_UNSIGNED_BYTE format rather than GL_UNSIGNED_INT_8_8_8_8_REV to hit it. With that, upload on 10.0.x should be almost as fast as on 9.1.x. Funny

Re: [Mesa-dev] i965: slow glTexSubImage2D because of Y tiling

2013-12-27 Thread Tomash Brechko
2013/12/27 Tomash Brechko > By forcing intel_region_alloc() to use I915_TILING_X I get 50% FPS rise > (for glxgears 2400FPS -> 3600FPS in default window, 108FPS -> 175FPS for > 1920x1080 fullscreen). > To clarify the statement about glxgears: of cource it doesn't use glTexSubImage2D() itself, I

[Mesa-dev] i965: slow glTexSubImage2D because of Y tiling

2013-12-27 Thread Tomash Brechko
Hello, I have an application that on each frame fills a full-window pixel buffer and then calls glTexSubImage2D() and maps the texture to a screen by drawing full-window rectangle (my hardware is Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz (brw->gen == 6), OpenGL 3.0, direct glDrawPixels() is much s