[Mesa-dev] [PATCH] intel/decoder: fix the possible out of bounds group_iter

2018-08-09 Thread Andrii Simiklit
The "gen_group_get_length" function can return a negative value and it can lead to the out of bounds group_iter. Signed-off-by: Andrii Simiklit --- src/intel/common/gen_decoder.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/intel/common/gen_decoder.c b

[Mesa-dev] [PATCH] i965/tex: ignore the diff between GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE

2018-07-10 Thread Andrii Simiklit
the difference between GL_TEXTURE_2D and GL_TEXTURE_RECTANGLE doesn't matter as far as the miptree is concerned; genX(update_sampler_state) only looks at the gl_texture_object and not the miptree when determining whether or not to use normalized coordinates. Signed-off-by: Andrii Sim

[Mesa-dev] [PATCH v3] i965/gen6/gs: Handle case where a GS doesn't allocate VUE

2018-06-22 Thread Andrii Simiklit
. Signed-off-by: Andrii Simiklit Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105399 --- src/intel/compiler/gen6_gs_visitor.cpp | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/intel/compiler/gen6_gs_visitor.cpp b/src/intel

[Mesa-dev] [PATCH v2] i965/gen6/gs: Handle case where a GS doesn't allocate VUE

2018-06-21 Thread Andrii Simiklit
but according to the specification SNB Volume 2 Part 1: 1.6.5.3, 1.6.5.6 the ILK must behave itself in the similar way) v2: Approach to fix this issue was changed. Instead of different EOT flags in the program end we will create VUE every time even if GS produces no output. Signed-off-by: Andrii

[Mesa-dev] [PATCH 2/2] i965/gen6/gs: Handle case where a GS doesn't allocate VUE

2018-06-21 Thread Andrii Simiklit
://bugs.freedesktop.org/show_bug.cgi?id=105399 Signed-off-by: Andrii Simiklit --- src/intel/compiler/gen6_gs_visitor.cpp | 88 +- 1 file changed, 23 insertions(+), 65 deletions(-) diff --git a/src/intel/compiler/gen6_gs_visitor.cpp b/src/intel/compiler

[Mesa-dev] [PATCH] i965/gen6/gs: Handle case where a GS doesn't allocate VUE

2018-06-19 Thread Andrii Simiklit
but according to the specification SNB Volume 2 Part 1: 1.6.5.3, 1.6.5.6 the ILK must behave itself in the similar way) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105399 Signed-off-by: Andrii Simiklit --- src/intel/compiler/gen6_gs_visitor.cpp | 56

[Mesa-dev] [PATCH] Fix 105399 bug GPU hang on SNB using geometry shader. The end of thread (EOT) message with flags Complete=1 and Used=0 will leads to GPU hang on SNB and ILK when GS does not allocat

2018-06-19 Thread Andrii Simiklit
but according to specification https://01.org/sites/default/files/documentation/snb_ihd_os_vol2_part1_0.pdf sections: 1.6.5.3, 1.6.5.6 the ILK must behave itself in the similar way) Signed-off-by: Andrii Simiklit --- src/intel/compiler/gen6_gs_visitor.cpp | 53