Преглед на файлове

gallium: remove uses_kill field from softpipe_shader

tags/mesa_20090313
Brian преди 17 години
родител
ревизия
c66ec5c7a2
променени са 3 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1
    1
      src/gallium/drivers/softpipe/sp_quad.c
  2. 0
    2
      src/gallium/drivers/softpipe/sp_state.h
  3. 0
    3
      src/gallium/drivers/softpipe/sp_state_fs.c

+ 1
- 1
src/gallium/drivers/softpipe/sp_quad.c Целия файл

@@ -60,7 +60,7 @@ sp_build_quad_pipeline(struct softpipe_context *sp)
sp->depth_stencil->depth.enabled &&
sp->framebuffer.zsbuf &&
!sp->depth_stencil->alpha.enabled &&
!sp->fs->uses_kill &&
!sp->fs->info.uses_kill &&
!sp->fs->info.writes_z;

/* build up the pipeline in reverse order... */

+ 0
- 2
src/gallium/drivers/softpipe/sp_state.h Целия файл

@@ -66,8 +66,6 @@ struct sp_fragment_shader {

struct tgsi_shader_info info;

boolean uses_kill;

void (*prepare)( const struct sp_fragment_shader *shader,
struct tgsi_exec_machine *machine,
struct tgsi_sampler *samplers);

+ 0
- 3
src/gallium/drivers/softpipe/sp_state_fs.c Целия файл

@@ -64,9 +64,6 @@ softpipe_create_fs_state(struct pipe_context *pipe,
/* get/save the summary info for this shader */
tgsi_scan_shader(templ->tokens, &state->info);

/* convenience field */
state->uses_kill = (state->info.opcode_count[TGSI_OPCODE_KIL] ||
state->info.opcode_count[TGSI_OPCODE_KILP]);
return state;
}


Loading…
Отказ
Запис