gallium: add PIPE_SHADER_CAP_OUTPUT_READ
authorVadim Girlin <vadimgirlin@gmail.com>
Tue, 15 Nov 2011 15:57:20 +0000 (19:57 +0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Nov 2011 22:38:37 +0000 (17:38 -0500)
It's intended to indicate whether the driver/hardware supports reading
of the values written into shader outputs.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/include/pipe/p_defines.h

index cada435aee7fc7608e063c623452c00851e45e0f..cd445a6daa6e0e6d41001df02a0176a7fea19ba3 100644 (file)
@@ -799,7 +799,6 @@ ureg_emit_src( struct ureg_program *ureg,
    unsigned n = 0;
 
    assert(src.File != TGSI_FILE_NULL);
-   assert(src.File != TGSI_FILE_OUTPUT);
    assert(src.File < TGSI_FILE_COUNT);
    
    out[n].value = 0;
index 5196591b471a0f949e4e6913f232aa2d63dd965e..6d6faab3baa6bd9af92ac16dcbab7923e6839bcd 100644 (file)
@@ -501,7 +501,8 @@ enum pipe_shader_cap
    PIPE_SHADER_CAP_INDIRECT_CONST_ADDR = 15,
    PIPE_SHADER_CAP_SUBROUTINES = 16, /* BGNSUB, ENDSUB, CAL, RET */
    PIPE_SHADER_CAP_INTEGERS = 17,
-   PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS = 18
+   PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS = 18,
+   PIPE_SHADER_CAP_OUTPUT_READ = 19
 };