pvr: re-indent pseudocode for DDMADT behavior
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

In pvr_pipeline_pds.c, there's a pseudocode snippet describing the
behavior of DDMADT PDS instruction, which seems to be copied from some
internal document about PDS behavior.

However, the pseudocode isn't properly indented, especially some
brackets are misaligned. This blocks fluent reading of the pseudocode
and may even mislead the reader.

Re-indent the pseudo code with similar rules with C codes in the driver.

Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Acked-by: Simon Perretta <simon.perretta@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40533>
This commit is contained in:
Icenowy Zheng 2026-03-20 16:50:43 +08:00
parent c75256b2ab
commit 7fa0add77d

View file

@ -1056,14 +1056,14 @@ void pvr_pds_generate_vertex_primary_program(
* if (test == 1) {
* // DDMAD(T)
* if (calculated_source_address[39:0] + (burst_size<<2) <=
* base_address[39:0] + buffer_size) {
* OOB := 0
* DOUTD calculated_source_address,dma_paramters
* } else {
* OOB := 1
* if (last_instance == 1) {
* dma_parameters[BURST_SIZE] := 0
* DOUTD calculated_source_address,dma_paramters
* base_address[39:0] + buffer_size) {
* OOB := 0
* DOUTD calculated_source_address,dma_paramters
* } else {
* OOB := 1
* if (last_instance == 1) {
* dma_parameters[BURST_SIZE] := 0
* DOUTD calculated_source_address,dma_paramters
* }
* }
* } else {