mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-16 07:59:53 +00:00
i965/fp: Fix segfault on gen4 TXB instructions.
The gen4 simd16 workaround looks at ir->type to determine how much storage to allocate for the simd16 value. In fragment programs, texturing only ever returns float vec4s (unlike GLSL, which can also have scalar floats or vector integers), so this is the right type. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56962 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f126f34c1d
commit
2f7915bdb9
@ -441,6 +441,8 @@ fs_visitor::emit_fragment_program_code()
|
||||
break;
|
||||
}
|
||||
|
||||
ir->type = glsl_type::vec4_type;
|
||||
|
||||
const glsl_type *coordinate_type;
|
||||
switch (fpi->TexSrcTarget) {
|
||||
case TEXTURE_1D_INDEX:
|
||||
|
Loading…
x
Reference in New Issue
Block a user