mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
i915g: Use tgsi_info from fragment shader instead
This commit is contained in:
parent
98b418e56e
commit
9f0acfe138
1 changed files with 1 additions and 4 deletions
|
|
@ -1176,17 +1176,14 @@ i915_translate_fragment_program( struct i915_context *i915,
|
|||
{
|
||||
struct i915_fp_compile *p;
|
||||
const struct tgsi_token *tokens = fs->state.tokens;
|
||||
struct tgsi_shader_info info;
|
||||
|
||||
#if 0
|
||||
tgsi_dump(tokens, 0);
|
||||
#endif
|
||||
|
||||
tgsi_scan_shader(tokens, &info);
|
||||
|
||||
/* hw doesn't seem to like empty frag programs, even when the depth write
|
||||
* fixup gets emitted below - may that one is fishy, too? */
|
||||
if (info.num_instructions == 1) {
|
||||
if (fs->info.num_instructions == 1) {
|
||||
i915_use_passthrough_shader(fs);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue