summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-03-04assembler: Rename branch to branch_gen6Damien Lespiau
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Rename gen5 DP pixel_scoreboard_clear to last_render_targetDamien Lespiau
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Remove struct dp_write_gen6 and struct use gen6_dpDamien Lespiau
We ended up with 2 structures that where exactly the same, so just use one, which happens to be the one Mesa has. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Rename dp_gen7 to gen7_dp and sync it with Mesa'sDamien Lespiau
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. I had to drop how mesa splits msg_control as the current assembly language gives access the the whole msg_control field. Recompiling the xorg and the intel driver of libva shaders doesn't show any difference in the assembly created. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Rename dp_gen6 to gen6_dp and sync with Mesa'sDamien Lespiau
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. I had to drop how mesa splits msg_control as the current assembly language gives access the the whole msg_control field. Recompiling the xorg and the intel driver of libva shaders doesn't show any difference in the assembly created. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Rename dp_read_gen6 to gen6_dp_sampler_const_cacheDamien Lespiau
The purpose of this commit is to synchronize opcode definitions across the gen4asm assembler and mesa. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Rename three_src_gen6 to da3srcDamien Lespiau
Mesa's brw_structs.h has named/renamed this field to da3src. Sync with them. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04assembler: Sync brw_instruction's header with mesa'sDamien Lespiau
Two changes there, a field has been renamed and one bit of padding is now used for compressed instructions. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04build: Add the debugger compilation status to the summaryDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04build: Only build the assembler if flex and bison are foundDamien Lespiau
And start displaying a nice summary of what we are going to compile. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04build: Don't use AM_MAINTAINER_MODEDamien Lespiau
This does not bring us anything these days, not using the macro at all is the same thing as having it always on. See this discussion: https://www.redhat.com/archives/virt-tools-list/2010-October/msg00049.html Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04gitignore: Ignore TAGS filesDamien Lespiau
TAGS files are generated with "make tags" to quickly jump through the code. Ignore those by-products of automake/ctags. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04build: Add CAIRO_FLAGS to the debugger compilationDamien Lespiau
The library in lib/ exposes <cairo.h> in its main header and thus users must be able to include it.
2013-03-04build: Integrate the merged gen assembler in the build systemDamien Lespiau
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-03-04bump version to 1.3Xiang, Haihao
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2013-03-04Fix typo. "donesn't" -> "doesn't"Homer Hsing
2013-03-04Add the CRE enginee for HSW+Zhao Yakui
This is also for media encoding like VME, which can do the operation of check & refinement. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-03-04Fix JMPI encoding for Haswell.Gwenole Beauchesne
It uses the byte-aligned jump instead of 64-bit units. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-03-04Add initial support for Haswell.Gwenole Beauchesne
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-03-04Allow Gen version decimals.Gwenole Beauchesne
This is preparatory work for Haswell (Gen 7.5). Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2013-03-04Bump gen_level to multiple of tens.Gwenole Beauchesne
Add new helper macros to check versions: - IS_GENp() meant to match Gen X and above - IS_GENx() meant to match Gen X exactly. Patch mechanically generated. No stale "gen_level" usage. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com> Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
2013-03-04Fix Gen7 JMPI compilationHomer Hsing
Gen7 JMPI Restrictions in bspec: The JIP data type must be Signed DWord
2013-03-04Fix sub-register number of an address register encodingHomer Hsing
The AddrSubRegNum field in the instruction binary code should be: code value(advanced_flag==0) value(advanced_flag==1) a0.0 0 0 a0.1 invalid input 1 a0.2 1 2 a0.3 invalid input 3 a0.4 2 4 a0.5 invalid input 5 a0.6 3 6 a0.7 invalid input 7 a0.8 4 invalid input a0.10 5 invalid input a0.12 6 invalid input a0.14 7 invalid input
2013-03-04Fix symbol register subreg number calculation rule symbol_reg_pHomer Hsing
When in normal mode, subreg_nr should not be divided by type_size. This patch fixes such bug.
2013-03-04Show warning when compiling the grammar parserHomer Hsing
2013-03-04Support Gen6 WHILE instructionHomer Hsing
2013-03-04Make sure Gen6 IF worksHomer Hsing
2013-03-04Make sure Gen6 ENDIF workHomer Hsing
2013-03-04Fix JIP position for Gen6 JMPIHomer Hsing
2013-03-04Fix Gen6 ELSE instructions code logic according to bspec.Homer Hsing
2013-03-04Make sure BREAK/CONT/HALT work on Gen6.Homer Hsing
2013-03-04Support Gen6 RET instruction.Homer Hsing
2013-03-04Support Gen6 CALL instruction.Homer Hsing
2013-03-04Replace variable init code in WAIT by src_null_regHomer Hsing
2013-03-04Let ip_dst and ip_src become local const variable, so as to reduce ↵Homer Hsing
replicated code.
2013-03-04Support Gen6 three-source-operand instructions.Homer Hsing
Add bits1.three_src.gen6.dest_reg_file according to Gen6 spec
2013-03-04Compile ELSE and WHILE in Gen5 as same way as in Gen4Homer Hsing
2013-03-04Fix reloc_target_offset computing logicHomer Hsing
2013-03-04Fully support Gen7 branching instructionsHomer Hsing
Also fix integer argument parsing rule for JMPI, IF and WHILE Fix shift/reduce conflicts in relativelocation
2013-03-04Supporting multi-branch instructios BRD & BRCHomer Hsing
brd: redirect channels to branches brc: let channels converging together also rewrite code converting label to offset
2013-03-04Use right-recursing in parser rule inst_option_listHomer Hsing
This recursing cost less memory. It is recommended by Bison.
2013-03-04Support subroutine instructions, CALL & RETHomer Hsing
2013-03-04Merge replicative code in gram.yHomer Hsing
2013-03-04Reduce replicative code in gram.y by reloc_target field in src_operandHomer Hsing
Bspec says JIP and UIP should be the source operands. It is better if src_operand has a field "reloc_target" according to bspec. The replicative code in JMPI and branchloop rules can be merged into one.
2013-03-04Restrict type of relativelocation2 to intHomer Hsing
Original rule set it to EXP | NUMBER, then YYERROR if it is NUMBER. This patch set it directly to EXP, restricting its type to int.
2013-03-04Rewrite label matching code. Collect labels in a linked list.Homer Hsing
Label matching is faster because of searching only in a small list, rather than searching a label in all instructions.
2013-03-04Add second_reloc_target in the data structure.Homer Hsing
Since Gen6+, some branching instructions have two relocation targets.
2013-03-04Add test case for ".declare" overriding feature.Homer Hsing
Later same name .declare pragma will override previously defined one. This patch add a test case for that feature.
2013-03-04Fix memory leaking in the parserHomer Hsing
STRING has been malloc'ed by strdup in src/lex.l but forgotten to be freed in src/gram.y.
2013-03-04Fix field length of JIP for one-offset-branch in Gen6Homer Hsing
Such JIP has 25 bits length in Gen6.