diff options
-rw-r--r-- | screen.c | 4 | ||||
-rw-r--r-- | tcl_init.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -2,6 +2,8 @@ #include <stdio.h> #include <stdint.h> +#include <inttypes.h> + #include <nouveau_drm.h> #include <nouveau_drmif.h> #include <nouveau_bo.h> @@ -44,7 +46,7 @@ int screen_open(int width, int height, int bpp) } printf("screen: chipset: 0x%08x\n", dev->chipset); - printf("screen: vm_vram_base: 0x%lx\n", dev->vm_vram_base); + printf("screen: vm_vram_base: 0x%" PRIu64 "\n", dev->vm_vram_base); printf("screen: vm_vram_size: %d MB\n", (int) (dev->vm_vram_size >> 20)); printf("screen: vm_gart_size: %d MB\n", (int) (dev->vm_gart_size >> 20)); @@ -62,16 +62,17 @@ static void tcl_fp_color(void) nouveau_bo_ref(NULL, &bo); } +#if 0 static void tcl_fp_nop(void) { -#if 0 +/* 000428e4 size 1, subchannel 1 (0xbeef3097),offset 0x08e4,increment # NV30_TCL_PRIMITIVE_3D_ACTIVE_PROGRAM = 0x07bfef41 # -- program at 0x0xad7e3010 - 0x20D010 # 0x00000001 0x00000000 0x00000000 0x00000000 # INST 0: NOP (FL0.xxxx) + END 07bfef41 NV30TCL.FP_ACTIVE_PROGRAM = DMA0=TRUE | DMA1=FALSE | OFFSET=0x07bfef40 -#endif +*/ uint32_t *map; struct nouveau_bo *bo; @@ -106,6 +107,7 @@ static void tcl_fp_nop(void) nouveau_bo_ref(NULL, &bo); } +#endif void tcl_init(void) { |