Sign in to follow this  
BlueWanderer

What will happen when shaders meet textures?

Recommended Posts

As it seems to me, when there are around one thousand shader units, we can only expect around one hundred or less texture units. So when the shaders are sampling textures, will they be stalled?

Share this post


Link to post
Share on other sites
In general, the thread with the texture fetch will stall while it waits for the fetch to complete. However a GPU will keep many many threads in flight simultaneously, and will typically have another warp/wavefront of threads that it can swap out so that execution can continue. Read through [url="http://bps10.idav.ucdavis.edu/talks/03-fatahalian_gpuArchTeraflop_BPS_SIGGRAPH2010.pdf"]this[/url] for more details.

Share this post


Link to post
Share on other sites
Let's put it another way. My card has 16 x 9 SIMD units and 4 x 9 texture mapping units (and I wonder if the 2 "x 9"s have same meaning). Can I say that one SIMD group have 4 texture mapping units? If so, when the group is executing one sampling instruction, how the texture mapping units are used? If not, how will they do the job?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this