nv50: use correct heaps for FP and GP code segments
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 1 Nov 2015 22:28:02 +0000 (23:28 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 1 Nov 2015 22:29:20 +0000 (23:29 +0100)
This is just a cosmetic change. Trivial.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nv50/nv50_program.c

index 26ba2c2c380a68eb416e2d6facf7d0567338fce3..299629b6438a2e42323a4fbd514f804c8ae7d33e 100644 (file)
@@ -420,8 +420,8 @@ nv50_program_upload_code(struct nv50_context *nv50, struct nv50_program *prog)
 
    switch (prog->type) {
    case PIPE_SHADER_VERTEX:   heap = nv50->screen->vp_code_heap; break;
-   case PIPE_SHADER_GEOMETRY: heap = nv50->screen->fp_code_heap; break;
-   case PIPE_SHADER_FRAGMENT: heap = nv50->screen->gp_code_heap; break;
+   case PIPE_SHADER_GEOMETRY: heap = nv50->screen->gp_code_heap; break;
+   case PIPE_SHADER_FRAGMENT: heap = nv50->screen->fp_code_heap; break;
    default:
       assert(!"invalid program type");
       return false;