i965: get PrimitiveMode from the program rather than the shader struct