Quellcode durchsuchen

r300g: add one more ZTOP disable bit.

Still missing the frag uses kill support, hopefully nha can point that out.
tags/mesa_7_7_rc1
Dave Airlie vor 16 Jahren
Ursprung
Commit
ce5cba040c
2 geänderte Dateien mit 9 neuen und 1 gelöschten Zeilen
  1. 6
    0
      src/gallium/drivers/r300/r300_fs.h
  2. 3
    1
      src/gallium/drivers/r300/r300_state.c

+ 6
- 0
src/gallium/drivers/r300/r300_fs.h Datei anzeigen

@@ -48,4 +48,10 @@ struct r300_fragment_shader {
void r300_translate_fragment_shader(struct r300_context* r300,
struct r300_fragment_shader* fs);

static inline boolean r300_fragment_shader_writes_depth(struct r300_fragment_shader *fs)
{
if (!fs)
return FALSE;
return (fs->code.writes_depth) ? TRUE : FALSE;
}
#endif /* R300_FS_H */

+ 3
- 1
src/gallium/drivers/r300/r300_state.c Datei anzeigen

@@ -252,9 +252,11 @@ static void*

dsa->z_buffer_top = R300_ZTOP_ENABLE;
/* XXX TODO: add frag prog rules for ztop disable */
if (r300_fragment_shader_writes_depth(r300->fs))
dsa->z_buffer_top = R300_ZTOP_DISABLE;
if (state->alpha.enabled && state->alpha.func != PIPE_FUNC_ALWAYS)
dsa->z_buffer_top = R300_ZTOP_DISABLE;
if (!is_empty_list(&r300->query_list))
if (r300->query_current)
dsa->z_buffer_top = R300_ZTOP_DISABLE;

return (void*)dsa;

Laden…
Abbrechen
Speichern