diff options
author | Kenneth Graunke <[email protected]> | 2014-06-28 21:16:06 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-06-30 14:06:51 -0700 |
commit | c60a4ba7e36f069d6829948ee14d87970f5f39a1 (patch) | |
tree | ff45046b120634c89a11581bed10fae969d690cb /src/mesa/drivers | |
parent | 5dfbfd17e06fa8ce21e9c94034e199769ee740e3 (diff) |
i965/disasm: Fix INTEL_DEBUG=fs on Broadwell for ARB_fp applications.
Apparently INTEL_DEBUG=fs has crashed on Broadwell for anything using
ARB_fragment_program since commit 9cee3ff5. We need to NULL-check the
right field.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Cc: "10.2" <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_fs_generator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp index 4725774a34e..ac8bf1d4ae4 100644 --- a/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp +++ b/src/mesa/drivers/dri/i965/gen8_fs_generator.cpp @@ -1255,7 +1255,7 @@ gen8_fs_generator::generate_code(exec_list *instructions) int before_size = next_inst_offset - start_offset; if (unlikely(INTEL_DEBUG & DEBUG_WM)) { - if (prog) { + if (shader_prog) { fprintf(stderr, "Native code for %s fragment shader %d (SIMD%d dispatch):\n", shader_prog->Label ? shader_prog->Label : "unnamed", |