Re: [Mesa-dev] [PATCH 1/2] mesa: Fix MaxNumLayers for 1D array textures.

2014-05-07 Thread Brian Paul

On 05/07/2014 03:35 PM, Kenneth Graunke wrote:

1D array targets store the number of slices in the Height field.

Cc: 10.2 10.1 10.0 mesa-sta...@lists.freedesktop.org
Signed-off-by: Kenneth Graunke kenn...@whitecape.org
---
  src/mesa/main/fbobject.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index ca16ae1..97538bc 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -1058,6 +1058,8 @@ _mesa_test_framebuffer_completeness(struct gl_context 
*ctx,
if (att-Layered) {
   if (att_tex_target == GL_TEXTURE_CUBE_MAP)
  att_layer_count = 6;
+ else if (att_tex_target == GL_TEXTURE_1D_ARRAY)
+att_layer_count = att-Renderbuffer-Height;
   else
  att_layer_count = att-Renderbuffer-Depth;
} else {



Reviewed-by: Brian Paul bri...@vmware.com

___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH 1/2] mesa: Fix MaxNumLayers for 1D array textures.

2014-05-07 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com

Marek

On Wed, May 7, 2014 at 11:35 PM, Kenneth Graunke kenn...@whitecape.org wrote:
 1D array targets store the number of slices in the Height field.

 Cc: 10.2 10.1 10.0 mesa-sta...@lists.freedesktop.org
 Signed-off-by: Kenneth Graunke kenn...@whitecape.org
 ---
  src/mesa/main/fbobject.c | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
 index ca16ae1..97538bc 100644
 --- a/src/mesa/main/fbobject.c
 +++ b/src/mesa/main/fbobject.c
 @@ -1058,6 +1058,8 @@ _mesa_test_framebuffer_completeness(struct gl_context 
 *ctx,
if (att-Layered) {
   if (att_tex_target == GL_TEXTURE_CUBE_MAP)
  att_layer_count = 6;
 + else if (att_tex_target == GL_TEXTURE_1D_ARRAY)
 +att_layer_count = att-Renderbuffer-Height;
   else
  att_layer_count = att-Renderbuffer-Depth;
} else {
 --
 1.9.2

 ___
 mesa-dev mailing list
 mesa-dev@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] [PATCH 1/2] mesa: Fix MaxNumLayers for 1D array textures.

2014-05-07 Thread Jordan Justen
Series
Reviewed-by: Jordan Justen jordan.l.jus...@intel.com

On Wed, May 7, 2014 at 3:22 PM, Marek Olšák mar...@gmail.com wrote:
 Reviewed-by: Marek Olšák marek.ol...@amd.com

 Marek

 On Wed, May 7, 2014 at 11:35 PM, Kenneth Graunke kenn...@whitecape.org 
 wrote:
 1D array targets store the number of slices in the Height field.

 Cc: 10.2 10.1 10.0 mesa-sta...@lists.freedesktop.org
 Signed-off-by: Kenneth Graunke kenn...@whitecape.org
 ---
  src/mesa/main/fbobject.c | 2 ++
  1 file changed, 2 insertions(+)

 diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
 index ca16ae1..97538bc 100644
 --- a/src/mesa/main/fbobject.c
 +++ b/src/mesa/main/fbobject.c
 @@ -1058,6 +1058,8 @@ _mesa_test_framebuffer_completeness(struct gl_context 
 *ctx,
if (att-Layered) {
   if (att_tex_target == GL_TEXTURE_CUBE_MAP)
  att_layer_count = 6;
 + else if (att_tex_target == GL_TEXTURE_1D_ARRAY)
 +att_layer_count = att-Renderbuffer-Height;
   else
  att_layer_count = att-Renderbuffer-Depth;
} else {
 --
 1.9.2

 ___
 mesa-dev mailing list
 mesa-dev@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/mesa-dev
 ___
 mesa-dev mailing list
 mesa-dev@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/mesa-dev
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev