summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/ilo/shader/ilo_shader_fs.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-08ilo: preliminary GEN 7.5 supportChia-I Wu1-3/+12
This is based on grepping for brw->is_haswell in i965 to see how GEN 7.5 differs from GEN 7. Slightly tested with Xonotic and some Mesa demos.
2013-08-13ilo: support push constant model in shadersChia-I Wu1-2/+54
Source constants from URB constant data when the constant data can fit in the PCB.
2013-07-12tgsi: rename the TGSI fragment kill opcodesBrian Paul1-1/+1
TGSI_OPCODE_KIL and KILP had confusing names. The former was conditional kill (if any src component < 0). The later was unconditional kill. At one time KILP was supposed to work with NV-style condition codes/predicates but we never had that in TGSI. This patch renames both opcodes: TGSI_OPCODE_KIL -> KILL_IF (kill if src.xyzw < 0) TGSI_OPCODE_KILP -> KILL (unconditional kill) Note: I didn't just transpose the opcode names to help ensure that I didn't miss updating any code anywhere. I believe I've updated all the relevant code and comments but I'm not 100% sure that some drivers had this right in the first place. For example, the radeon driver might have llvm.AMDGPU.kill and llvm.AMDGPU.kilp mixed up. Driver authors should review their code. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-06-25ilo: move SBE setup code to ilo_shader.cChia-I Wu1-1/+6
Add ilo_shader_select_kernel_routing() to construct 3DSTATE_SBE. It is called in ilo_finalize_states(), rather than in create_fs_state(), as it depends on VS/GS and rasterizer states. With this change, ilo_shader_internal.h is no longer needed for ilo_gpe_gen6.c.
2013-06-25ilo: move internal shader interface to a new headerChia-I Wu1-1/+1
Move it to ilo_shader_internal.h. The goal is to make files not part of the compiler include only ilo_shader.h eventually.
2013-05-27ilo: add support for indirect access of CONST in FSChia-I Wu1-1/+97
Unlike other register files, CONST is read with a message and indirect access is easier to implement.
2013-05-08ilo: use tgsi_util_get_texture_coord_dim()Chia-I Wu1-1/+2
And remove toy_tgsi_get_texture_coord_dim().
2013-05-05ilo: correctly set return types of sampler messagesChia-I Wu1-0/+2
Correctly set the types of the temporaries. We do not want type conversions when moving the results to the final destinations.
2013-05-01ilo: expose register indices of OUTs in ilo_shaderChia-I Wu1-0/+1
pipe_stream_output_info tells us which of OUT[i] needs to be written out. We need the info to map OUT[i] to VUE offset.
2013-05-01ilo: use ilo_dev_info in toy compilerChia-I Wu1-4/+4
We need only dev->gen, but it makes sense to expose other information to the compiler.
2013-04-26ilo: compile VS/GS/FS with the toy compilerChia-I Wu1-0/+1694