[Mesa-dev] [PATCH] st/mesa: don't disallow indirect addressing of temporaries
Michel Dänzer
michel at daenzer.net
Wed May 14 06:59:28 PDT 2014
On 14.05.2014 06:45, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> It works just fine.
>
> This fixes a crash in:
> piglit/spec/glsl-1.20/execution/fs-const-array-of-struct-of-array
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78666
>
> Cc: 10.2 10.1 mesa-stable at lists.freedesktop.org
> ---
> src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> index bdee1f4..eab7d8a 100644
> --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
> @@ -4475,7 +4475,6 @@ translate_src(struct st_translate *t, const st_src_reg *src_reg)
> src = ureg_negate(src);
>
> if (src_reg->reladdr != NULL) {
> - assert(src_reg->file != PROGRAM_TEMPORARY);
> src = ureg_src_indirect(src, ureg_src(t->address[0]));
> }
>
>
Maybe this doesn't work for r600g:
https://bugs.freedesktop.org/show_bug.cgi?id=78666#c3
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the mesa-dev
mailing list