Re: [Mesa-dev] [PATCH 2/2] tgsi: clean up exec_tex()

2013-05-07 Thread Roland Scheidegger
Am 07.05.2013 12:21, schrieb Chia-I Wu: > Make use of tgsi_util_get_texture_coord_dim() to replace the big switch table. > > There is a subtle difference with this change. When TXP is used with an array > texture, the layer is now also projected. This behavior matches the TGSI doc. > Since GLSL

[Mesa-dev] [PATCH 2/2] tgsi: clean up exec_tex()

2013-05-07 Thread Chia-I Wu
Make use of tgsi_util_get_texture_coord_dim() to replace the big switch table. There is a subtle difference with this change. When TXP is used with an array texture, the layer is now also projected. This behavior matches the TGSI doc. Since GLSL does not allow TXP on an array texture, I am not s