1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
[[!toc ]]
## R600 To Do list
And here is the R600g to do list; if you feel something is missing please add it. If you have done something and it no longer needs to be investigated, happily erase it from here :).
### LLVM
* **Testing on R600, R700 and Cayman GPUs**
* _Difficulty:_ Easy
* _Who's working on it:_
* _Date Started:_
* _Status:_
* _Description:_
* Most of the LLVM backend testing has been with Evergreen or Northern Islands GPUs. R600, R700, and Cayman GPUs are slightly different, so there may be bugs on these GPUs that aren't present on Evergeen/Northern Islands. The best method for testing is to compare piglit results with and without the LLVM backend and report the regressions. For easy switching between the two compilers, compile mesa with --enable-r600-llvm-compiler. This will make the LLVM backend the default compiler, and you can switch back to the old compiler by using the R600_LLVM=0 environment variable.
* It would also be interesting to see if there are any performance gains from using the LLVM backend, so a related task would be to compare the performance of your favorite programs with and without the LLVM backend and then report any discrepancies.
* **Remove target specific intrinsics**
* _Difficulty:_ Easy
* _Who's working on it:_ N/A
* _Date Started:_ N/A
* _Status:_ N/A
* _Description:_
* The code in gallium/drivers/radeon/radeon_setup_tgsi.c uses a lot of target specific intrinsics for translating from TGSI to LLVM. Most of these are unnecessary and should be replaced with LLVM IR or LLVM intrinsics.
* **Use LLVM analysis passes to clear the Barrier bit on Control Flow instructions**
* _Difficulty:_ Hard
* _Who's working on it:_ N/A
* _Date Started: _N/A
* _Status:_ N/A
* _Description:_
* Clearing the Barrier bit on Control Flow instructions allows them to execute in parallel, which can improve performance. We can use the LLVM analysis passes to determine when it is safe to clear this bit. This task will also require some changes to the way code is generated by the backend, because we don't currently have much control over Control Flow instructions from inside the backend.
### Compute
* **Enable constant address space **
* _Difficulty:_ Medium
* _Who's working on it:_ N/A
* _Date Started: _N/A
* _Status:_ N/A
* _Description:_
* Clover currently uses the global address space for all memory even constant memory, which is not optimal from a performance perspective. To complete this task a developer would need to:
1. Modify clover to create a module::argument::constant for pointers in the constant address space (See the XXX comment in build_module_llvm() @ llvm/invocation.cpp
1. Add support to r600g for creating constant buffers for compute. (We should be able to resue evergreen_emit_constant_buffer() for this and we should create a separate constbuf_state atom for compute).
1. Update the LLVM backend to handle loads from the constant address space.
### General Optimization
* [MEDIUM] Convert the remaining pipe_state into atoms
### 3D Features
* **Polygon stippling**
* _Difficulty:_ Easy
* _Who's working on it:_ N/A
* _Note:_ Take advantage of util/u_pstipple. It contains the shader transformation code and can create a stipple texture.
* **Polygon/line/point smoothing**
* _Difficulty:_ Medium
* _Who's working on it:_ N/A
* **HyperZ support**
* _Difficulty:_ Hard
* _Who's working on it:_ N/A
* _Who was working on it:_ Jerome Glisse
* _Note:_ See also [[HyperZ Meta Bug|https://bugs.freedesktop.org/show_bug.cgi?id=75112]].
### Bugs
* All open bugs assigned to [[Drivers/Gallium/r600|https://bugs.freedesktop.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&component=Drivers%2FGallium%2Fr600&product=Mesa]]
## Notes
* R600 trig functions input must be normalized from radians by dividing by 2*PI. Valid input domain is [-256, 256] which corresponds to an unnormalized input domain of [-512*PI, 512*PI]. For SIN, an out of range input results in 0.0f, for COS, 1.0f.
|