Subversion Repositories Kolibri OS

Rev

Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4358 Rev 4401
Line 2918... Line 2918...
2918
	 emit_interpolation_setup_gen6();
2918
	 emit_interpolation_setup_gen6();
Line 2919... Line 2919...
2919
 
2919
 
2920
      /* We handle discards by keeping track of the still-live pixels in f0.1.
2920
      /* We handle discards by keeping track of the still-live pixels in f0.1.
2921
       * Initialize it with the dispatched pixels.
2921
       * Initialize it with the dispatched pixels.
2922
       */
2922
       */
2923
      if (fp->UsesKill) {
2923
      if (fp->UsesKill || c->key.alpha_test_func) {
2924
         fs_inst *discard_init = emit(FS_OPCODE_MOV_DISPATCH_TO_FLAGS);
2924
         fs_inst *discard_init = emit(FS_OPCODE_MOV_DISPATCH_TO_FLAGS);
2925
         discard_init->flag_subreg = 1;
2925
         discard_init->flag_subreg = 1;
Line 2926... Line 2926...
2926
      }
2926
      }
Line 2942... Line 2942...
2942
      if (failed)
2942
      if (failed)
2943
	 return false;
2943
	 return false;
Line 2944... Line 2944...
2944
 
2944
 
Line -... Line 2945...
-
 
2945
      emit(FS_OPCODE_PLACEHOLDER_HALT);
-
 
2946
 
-
 
2947
      if (c->key.alpha_test_func)
2945
      emit(FS_OPCODE_PLACEHOLDER_HALT);
2948
         emit_alpha_test();
Line 2946... Line 2949...
2946
 
2949
 
Line 2947... Line 2950...
2947
      emit_fb_writes();
2950
      emit_fb_writes();