Module: Mesa
Branch: master
Commit: a6dc3d22ebea709f353dda869e0ca474cda72559
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a6dc3d22ebea709f353dda869e0ca474cda72559

Author: Alejandro PiƱeiro <[email protected]>
Date:   Fri Apr 13 16:44:23 2018 +0200

i965: use gl_shader_program_data::spirv

Reviewed-by: Timothy Arceri <[email protected]>

---

 src/mesa/drivers/dri/i965/brw_program.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_program.c 
b/src/mesa/drivers/dri/i965/brw_program.c
index 446aaee067..959c6122f5 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -77,7 +77,7 @@ brw_create_nir(struct brw_context *brw,
 
    /* First, lower the GLSL/Mesa IR or SPIR-V to NIR */
    if (shader_prog) {
-      if (shader_prog->_LinkedShaders[stage]->spirv_data)
+      if (shader_prog->data->spirv)
          nir = _mesa_spirv_to_nir(ctx, shader_prog, stage, options);
       else
          nir = glsl_to_nir(shader_prog, stage, options);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to